Skip to content

Does not cut links that end with non-latin symbols based on domain correctly #278

Open
@kibertoad

Description

@kibertoad

Once upon a time there was this issue reported in remarkable: jonschlinkert/remarkable#51

Fix worked just fine up to Autolinker version 1.4.1.
On 1.4.2+ the non-latin part was once again included together with the latin domain in parsed url. Most likely this is related to #201 being merged.

My question is this: would you consider that a regression or breaking change from autolinker side? Or previous behaviour was wrong and current one is preferable?

Commit with fix for ease of reference (illustrates what autolinker API is used, and what is expected outcome): jonschlinkert/remarkable@719d4c1

Newest version generates this: -<p><a href="http://www.example.org版权所有">www.example.org版权所有</a></p>

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