barbarysoftware / Linkifier

A Java library to detect URLs in plain-text strings and convert them to HTML anchor tags. Inspired by linkifyjs.
https://github.com/barbarysoftware/Linkifier
MIT License
1 stars 1 forks source link

Trailing periods are incorrectly included in link #1

Closed stevemcleod closed 1 year ago

stevemcleod commented 1 year ago

Repro

Run this:

   public static void main(String[] args) {
        System.out.println(Linkify.linkify("Visit example.com."));
    }

Expected output: Visit <a href='http://example.com.' target='_blank'>example.com</a>.

Actual output: Visit <a href='http://example.com.' target='_blank'>example.com.</a>

dimitriosgialas commented 1 year ago

This one is now fixed and checked in.