validatorjs / validator.js

String validation
MIT License
23.13k stars 2.32k forks source link

isEmail returns 500 on email check without domain full domain. #2233

Open ItzhakPol opened 1 year ago

ItzhakPol commented 1 year ago

Describe the bug im using isEmail as mongoose validator, im trying to test email without full domain like: steve@example without .com and i get error 500 in the console, besides that nothing. as you can see in the picture of the updateMe function the first log shows but the second log doesn't.

Additional context Validator.js version: "^13.7.0" Node.js version: 20.1.0 OS platform: windows 10

500 Console Mongoose model updateMe

abhinaisai2002 commented 1 year ago

Hey,I understood this issue. Can you assign this to me so that i can work on this issue?

ItzhakPol commented 1 year ago

@abhinaisai2002 idk how to assign it, not sure i even can.

WikiRik commented 1 year ago

Assignment is not needed to work on issues btw, but I have assigned you either way