We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dashes are valid in hostnames. The latter part of the regexp in isAValidUrl? should be, at a minimum:
"//([[:alpha:][:digit:]-.]{2,})([.]{1})([[:alpha:]]{2,4})(/)")
(This should also probably be updated to include longer TLDs.)
The text was updated successfully, but these errors were encountered:
Hi Adam,
Yes, this regexp is surely better.
This project is 4 years old and I've abandoned it for too long :)
I don't know how to do it on github (maybe changing the README.md like on some projects), but would you like to take the lead on this project?
Thanks a lot,
Alex
Sorry, something went wrong.
Possibly. Let me think about it. I suppose the other options is that no one will do it. :)
Still - I haven't found an alternative that's better, and this has been pretty useful for me.
On the topic at hand, I actually think regexps are a pretty poor way to validate uris, and we should probably use the built-in URI object now.
No branches or pull requests
Dashes are valid in hostnames. The latter part of the regexp in isAValidUrl? should be, at a minimum:
"//([[:alpha:][:digit:]-.]{2,})([.]{1})([[:alpha:]]{2,4})(/)")
(This should also probably be updated to include longer TLDs.)
The text was updated successfully, but these errors were encountered: