You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I try to validate an url and enter some random email, but I've got true as the result which in reality must be false, (I don't really know, maybe some rules has been changed), but i need an explanation about this.
Examples
`const validator = require("validator");
console.log(validator.isURL("irlan@gmail.com"));
// This return true`
Additional context
Validator.js version: 13.7.0
Node.js version: 16.13.0
OS platform: Windows 10
The text was updated successfully, but these errors were encountered:
It's considered valid per-spec since irlan here can be considered an username in http auth. Please check the discussion in #1751 . You can pass disallow_auth: true to get the old behaviour.
Describe the bug
I try to validate an url and enter some random email, but I've got true as the result which in reality must be false, (I don't really know, maybe some rules has been changed), but i need an explanation about this.
Examples
`const validator = require("validator");
console.log(validator.isURL("irlan@gmail.com"));
// This return true`
Additional context
Validator.js version: 13.7.0
Node.js version: 16.13.0
OS platform: Windows 10
The text was updated successfully, but these errors were encountered: