-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isURL marks valid URL as invalid #294
Comments
isURL() also fails when there is http auth information in the url. So something like http://username:[email protected] also fails. |
@blakehall auth is supported. /Volumes/Repositories/personal/validator.js (air) $ node
> var v = require('./');
undefined
> v.isURL('http://username:[email protected]');
true |
Added in |
@chriso Indeed, I mistakenly assumed it was an issue with http auth. It looks like the issue is actually with an underscore in our subdomain. I'm trying to use this with our custom CI tool, which has urls like pr.example_com.294.example.com. v.isURL('http://username:[email protected]_com.294.example.com') -> false |
@blakehall I just pushed v.isURL('http://pr.example_com.294.example.com', {allow_underscores: true})
// => true Previous discussion was in #242. |
cool! thanks for the pointer @chriso! 👍 |
http://mari--mari.ya.ru
.isURL marks this as invalid, though it works just fine
The text was updated successfully, but these errors were encountered: