-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow apostrophe in email validation
Also add tests for apostrophe for both cases since the regex is different for the last character. Not sure if the deno files are supposed to be checked in or not (since they are generated) but since they are also include them in this PR.
- Loading branch information
1 parent
a5a9d31
commit 1dd08af
Showing
5 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,8 @@ test("email validations", () => { | |
`[email protected]`, | ||
`[email protected]`, | ||
`[email protected]`, | ||
`apostrophe'[email protected]`, | ||
`endingapostrophe'@example.com`, | ||
]; | ||
const invalidEmails = [ | ||
// no "printable characters" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,8 @@ test("email validations", () => { | |
`[email protected]`, | ||
`[email protected]`, | ||
`[email protected]`, | ||
`apostrophe'[email protected]`, | ||
`endingapostrophe'@example.com`, | ||
]; | ||
const invalidEmails = [ | ||
// no "printable characters" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters