Open mercury233 opened 1 year ago
const Autolinker = require("autolinker") const autolinker = new Autolinker({ urls: { schemeMatches: true, tldMatches: false, ipV4Matches: false }, newWindow: false, stripPrefix: false, email: false, phone: false, stripTrailingSlash: false }); console.log(autolinker.link("链接:https://www.google.com")); console.log(autolinker.link("link:https://www.google.com")); console.log(autolinker.link("链接: https://www.google.com")); console.log(autolinker.link("链接:https://www.google.com"));
https://runkit.com/embed/xpmv085le79y
The 4th result is wrong
Similar example here.
console.log(Autolinker.link("こちら→https://google.com")) // result: こちら→https://g<a href="http://oogle.com" target="_blank" rel="noopener noreferrer">oogle.com</a>
https://runkit.com/embed/xpmv085le79y
The 4th result is wrong