Autolinker.js icon indicating copy to clipboard operation
Autolinker.js copied to clipboard

improper generation of link

Open lakhanOpen opened this issue 9 years ago • 3 comments

Hello

if we write below string then it generate link a.:b a.abc:b If we type above string then it generate link

Please help to solve above bug.

Thanks

lakhanOpen avatar Jun 16 '15 07:06 lakhanOpen

As well as others containing ":". For example:

Hi.:D

zalmoxisus avatar Jun 23 '15 09:06 zalmoxisus

I'm also having problem with this string:

  1. de, 2.ao, 3.na, 4.em

It becomes:

  1. de, http://2.ao, http://3.na, 4.em

edhowler avatar Oct 21 '15 21:10 edhowler

As of today, de, ao and na are valid TLD (http://data.iana.org/TLD/tlds-alpha-by-domain.txt) so, with the last version (1.4.2), the first three do link and the 4th does not. It is intended behaviour.

Should be fixed :

  • [ ] a.:b should not link (also Hi.:D )
  • [ ] a.abc:b should not link

olafleur avatar Mar 03 '17 02:03 olafleur