Added support for hyphen(-) under email regex by hiteshbedre · Pull Request #543 · Tencent/APIJSON
Conversation
Current version of email regex don't have support for hyphen(-). I have updated the existing regex which has duplicate slash symbol twice in first square bracket, which is redundant.
Executed some test cases here: https://regex101.com/r/qiNqNc/1
thx for ur contribution! besides, i got a good tool for testing regular expressions because of ur mention above~
Absolutely, plus we can completely change the email regex to validate ".com" part within regex itself. Happy to do it.
This file contains hidden or 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
