xP: fix up link detection
Allow balanced parantheses at the end of a link.
This commit is contained in:
parent
ef3d1cc409
commit
67d52a2d89
@ -435,7 +435,7 @@ for (let i = 0; i < 24; i++) {
|
|||||||
let linkRE = [
|
let linkRE = [
|
||||||
/https?:\/\//,
|
/https?:\/\//,
|
||||||
/([^\[\](){}<>"'\s]|\([^\[\](){}<>"'\s]*\))+/,
|
/([^\[\](){}<>"'\s]|\([^\[\](){}<>"'\s]*\))+/,
|
||||||
/[^\[\](){}<>"'\s,.:]/,
|
/([^\[\](){}<>"'\s,.:]|\([^\[\](){}<>"'\s]*\))/,
|
||||||
].map(r => r.source).join('')
|
].map(r => r.source).join('')
|
||||||
|
|
||||||
let BufferList = {
|
let BufferList = {
|
||||||
|
Loading…
Reference in New Issue
Block a user