@cdwr/nx-migrate-action
Version:
The Nx Migrate GitHub Action will keep your workspace up to date.
16 lines (15 loc) • 404 B
TypeScript
/**
* Parse the name and email address from a string.
*
* Empty string is allowed which will return empty name and email.
*
* Pattern: `Name <user@domain.io>`
*
* @param text The text to parse
* @returns The name and email address
* @throws If a text is provided and doesn't follow the pattern
*/
export declare const parseNameEmail: (text: string) => {
name: string;
email: string;
};