From 67d52a2d89f4df328e018ac1831ed917236bce90 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 23 Sep 2022 09:01:52 +0200 Subject: xP: fix up link detection Allow balanced parantheses at the end of a link. --- xP/public/xP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xP') diff --git a/xP/public/xP.js b/xP/public/xP.js index 155a8f5..ae6dd28 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -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 = { -- cgit v1.2.3-70-g09d2