xP: fix up link detection

Allow balanced parantheses at the end of a link.
This commit is contained in:
Přemysl Eric Janouch 2022-09-23 09:01:52 +02:00
parent ef3d1cc409
commit 67d52a2d89
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ for (let i = 0; i < 24; i++) {
let linkRE = [
/https?:\/\//,
/([^\[\](){}<>"'\s]|\([^\[\](){}<>"'\s]*\))+/,
/[^\[\](){}<>"'\s,.:]/,
/([^\[\](){}<>"'\s,.:]|\([^\[\](){}<>"'\s]*\))/,
].map(r => r.source).join('')
let BufferList = {