From 67d52a2d89f4df328e018ac1831ed917236bce90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 23 Sep 2022 09:01:52 +0200 Subject: [PATCH] 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(-) 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 = {