Skip to content

Commit 01973ef

Browse files
committed
update email regex to lower case
1 parent 550b153 commit 01973ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/projectMemberInvites/create.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const compareEmail = (email1, email2, options = { UNIQUE_GMAIL_VALIDATION: false
4444
if (emailSplit) {
4545
const address = emailSplit[1];
4646
const emailDomain = emailSplit[2];
47-
const regexAddress = _.toLower(address).replace('.', '').split('').join('\.?'); // eslint-disable-line no-useless-escape
48-
const regex = new RegExp(`${regexAddress}${emailDomain}`);
47+
const regexAddress = address.replace('.', '').split('').join('\.?'); // eslint-disable-line no-useless-escape
48+
const regex = new RegExp(_.toLower(`${regexAddress}${emailDomain}`));
4949
return regex.test(_.toLower(email2));
5050
}
5151
}

0 commit comments

Comments
 (0)