Cretezy / linkify

Low-level link (text, URLs, emails) parsing library in Dart
https://pub.dartlang.org/packages/linkify
MIT License
62 stars 50 forks source link

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

Open EsteveAguilera opened 3 years ago

EsteveAguilera commented 3 years ago

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')],
);