Since 6.0.0, bare emails are linkified regardless of TLD.
import { LinkifyIt } from "linkify-it";
new LinkifyIt().test("user@example.badtld"); // 6.1.0: true, 5.0.2: false
new LinkifyIt().test("www.example.badtld"); // false on both
.tlds([...]) makes no difference for emails.
I think the regression is in d4a73a4
Potential fix opened at #124
Since 6.0.0, bare emails are linkified regardless of TLD.
.tlds([...])makes no difference for emails.I think the regression is in d4a73a4
Potential fix opened at #124