summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-23 09:01:52 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-23 09:42:23 +0200
commit67d52a2d89f4df328e018ac1831ed917236bce90 (patch)
treefb63b7f948bc6c2c85cfdb842decff07d862becc /xP
parentef3d1cc409c6d3ea6db48623f2c0004c9c52d716 (diff)
downloadxK-67d52a2d89f4df328e018ac1831ed917236bce90.tar.gz
xK-67d52a2d89f4df328e018ac1831ed917236bce90.tar.xz
xK-67d52a2d89f4df328e018ac1831ed917236bce90.zip
xP: fix up link detection
Allow balanced parantheses at the end of a link.
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js2
1 files changed, 1 insertions, 1 deletions
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 = {