diff --git a/src/utils.ts b/src/utils.ts index a7f825d8b3..45420e9f68 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -70,7 +70,7 @@ export function parseDisplayNameEmail( ): DisplayNameEmail { // Parse the name and email address from a string in the following format // Display Name - const pattern = /^([^<]+)\s*<([^>]+)>$/i + const pattern = /^([^<]+)\s*<([^>]*)>$/i // Check we have a match const match = displayNameEmail.match(pattern)