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
is.url does not accept valid characters (?, +, %) and allow white spaces #106
Comments
I'd like to see this fixed as well. I personally use the regex from @dperini for URL's but that returns false for any URL not prefixed with http/https/ftp so it would change the behavior of the library slightly. You can see that regex here: https://gist.github.com/dperini/729294 If everyone would be in favor of using that regex I can make the change and write the test cases. Just let me know. |
I was looking at the same gist. |
yeah that's where I got it from :P |
@fslone,
if there is no need to validate user/password (user:pass) remove the following part:
the entire IPV4 part could also be removed to shorten the regex and make it more efficient. Thumbs up ! |
@fslone,
by just adding a question mark after the grouping parenthesis. |
@dperini thanks, you're the man. I'm going to make a few changes to the regex like Diego has recommended and I'll submit a pull request for this change shortly. |
Is this a desired behaviour?
The text was updated successfully, but these errors were encountered: