gregjacobs / Autolinker.js

Utility to Automatically Link URLs, Email Addresses, Phone Numbers, Twitter handles, and Hashtags in a given block of text/HTML
MIT License
1.48k stars 238 forks source link

Auto linker does not work with double dash #55

Closed shaileshbonzer closed 10 years ago

shaileshbonzer commented 10 years ago

I am having some url's contains double dash in it. The autolinker does not render this url's properly. It will broke the url string. Example. My url - http://www.google-play--store It add link upto - http://google-play after that --store is displayed as a plain text.

autolinker_issue

gregjacobs commented 10 years ago

Hey, was this definitely an issue? If so, feel free to reopen and I'll take a look