-
Notifications
You must be signed in to change notification settings - Fork 238
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
URLs preceded with text are not linked correctly #159
Comments
Running into the same issue. |
Hey guys. So autolinker tries to link many schemes other than just What are some inputs from users that you are getting which exhibit this problem though? |
Something as simple as "hahahttp://www.submithub.com" was getting messed up. I'm using a bit of a hack solution to get around it: var text = "hahahttp://www.indieshuffle.com" Seems to pretty much do the trick. |
Ok, interesting. I'm thinking maybe the code should make an exception for this particular case then. If it finds http or https at the end of the scheme string, it should assume that the scheme is http or https and remove anything that comes before it. Will work on this when I get a chance maybe next weekend, or other pull requests are definitely welcome! |
@gregjacobs any updates here? |
@ivpusic Not for the moment, but you are more than welcome to submit a pull request! :) |
Going through old issues, and working on this now! |
…eceeding Fix for URLs preceded with text are not linked correctly #159
Fixed with #275 |
asdasdahttp://example.com will link like:
<a href="asdasdahttp://example.com/" target="_blank">asdasdahttp://example.com</a>
It should link:
asdasda<a href="http://example.com/" target="_blank">http://example.com</a>
The text was updated successfully, but these errors were encountered: