Uh oh!
There was an error while loading. Please reload this page.
Added support for hyphen(-) under email regex - #543
Conversation
TommyLemon
commented
Apr 11, 2023
thx for ur contribution! besides, i got a good tool for testing regular expressions because of ur mention above~ |
hiteshbedre
commented
Apr 12, 2023
email ending with ".com" is handled separately in code. |
yeah, that's a problem of the legacy code, and i think we can remove the if clause here: plus, what do u think? |
hiteshbedre
commented
Apr 12, 2023
Absolutely, plus we can completely change the email regex to validate ".com" part within regex itself. Happy to do it. |

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