-
Notifications
You must be signed in to change notification settings - Fork 40
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
Mention just how loose this component is #4
Comments
can you give some examples? and do you have a fix for the IDNs? open to PRs i think parens are valid in urls? if anything, |
I think I found a library that's better than Component, maybe we can focus our efforts on improving that one - http://soapbox.github.io/jQuery-linkify/. A simple regexp just won't cut it. |
#9 will fix most of these issues. |
Whether #9 will fix those issues I don't know. My point is, why develop yet another "is this string a URL" library when there are so many out there, and better at that to boot. |
Perhaps this observation is too late now. This module gets 2M downloads/month on npm.
|
Looks like validator has more traction. Too bad there's no TypeScript support. |
Will fail SO badly in so many cases: IDNs, modern TLDs, parens in URLs, punctuation at the end etc.
There's a much more powerful regexp in component/regexps.uri.
I understand this component doesn't really aim to properly parse URLs like linkify, but perhaps it's better to just use the
regexps
component.The text was updated successfully, but these errors were encountered: