Skip to content

Url with protocol prefixed with emoji being incorrectly parsed #399

Closed
@caiofct

Description

@caiofct

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 #276.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions