mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 03:33:30 +00:00
PM-31247 interchanged error message (#18644)
This commit is contained in:
@@ -312,7 +312,7 @@ export class SendDetailsComponent implements OnInit {
|
||||
const emails = control.value.split(",").map((e: string) => e.trim());
|
||||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||
const invalidEmails = emails.filter((e: string) => e.length > 0 && !emailRegex.test(e));
|
||||
return invalidEmails.length > 0 ? { email: true } : null;
|
||||
return invalidEmails.length > 0 ? { multipleEmails: true } : null;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user