Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels