Skip to content

Text with three dots is parsed as URL while text with two dots is not #41

@EsteveAguilera

Description

@EsteveAguilera

The text ...and is parsed as an URL while the text ..and is not.

Test to reproduce it:

expectListEqual(
    linkify("...and", options: LinkifyOptions(looseUrl: true)),
    [TextElement('...and')],
);

Output:
Expected [LinkElement: 'http://...and' (...and)] to be [TextElement: '...and']

This test runs ok:

expectListEqual(
    linkify("..and", options: LinkifyOptions(looseUrl: true)),
    [TextElement('..and')],
);

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