-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/github-issue-3575
- Loading branch information
Showing
7 changed files
with
35 additions
and
88 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
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
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 |
---|---|---|
|
@@ -31,11 +31,13 @@ func TestEmailRegexCheck(t *testing.T) { | |
dot email = [email protected] | ||
special char email = [email protected] | ||
support email = [email protected] | ||
insenstive email = [email protected] | ||
insenstive domain = [email protected] | ||
mix email = [email protected] | ||
// negative cases | ||
not an email = abc.123@z | ||
looks like email = test@user <- no domain | ||
email but not = [email protected] <- capital letters not supported for domain | ||
random text = here's some information about local-user@edu user | ||
` | ||
|
||
|
@@ -45,6 +47,7 @@ func TestEmailRegexCheck(t *testing.T) { | |
"[email protected]", "[email protected]", "[email protected]", | ||
"[email protected]", "[email protected]", "[email protected]", | ||
"[email protected]", "[email protected]", "[email protected]", | ||
"[email protected]", "[email protected]", "[email protected]", | ||
} | ||
|
||
emailRegex := regexp.MustCompile(EmailPattern) | ||
|