validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

fix(isMail):fixed consecutive hyphen check in domain part

Open kshavp opened this issue 1 year ago • 1 comments

When doing check with isEmail('[email protected]'), now returns false and behaves as expected. Fix based on suggestion by itbali

Fixes #2268

Checklist

  • [x] PR contains only changes related; no stray files, etc.

  • [x] README updated (where applicable) image

  • [x] Tests written (where applicable)

  • [x] References provided in PR (where applicable)

kshavp avatar Sep 19 '23 07:09 kshavp

Please add necessary test cases for this fix.

Daniyal-Qureshi avatar Oct 01 '23 17:10 Daniyal-Qureshi