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

Url with protocol prefixed with emoji being incorrectly parsed

Open caiofct opened this issue 3 years ago • 1 comments

An url like 👍https://www.google.com is being parsed as http://oogle.com/ . If I remove the protocol and just use 👍www.google.com then it will be parsed correctly http://xn--www-0113b.google.com/.

This can be confirmed using the live demo example: http://greg-jacobs.com/Autolinker.js/examples/live-example/

I believe this could be a regression from https://github.com/gregjacobs/Autolinker.js/pull/276.

caiofct avatar Jan 25 '23 19:01 caiofct

@gregjacobs Any chance you could take a look at this one?

caiofct avatar Jan 30 '23 17:01 caiofct