diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-09-23 09:01:52 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-09-23 09:42:23 +0200 |
commit | 67d52a2d89f4df328e018ac1831ed917236bce90 (patch) | |
tree | fb63b7f948bc6c2c85cfdb842decff07d862becc /xP/public/xP.js | |
parent | ef3d1cc409c6d3ea6db48623f2c0004c9c52d716 (diff) | |
download | xK-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/public/xP.js')
-rw-r--r-- | xP/public/xP.js | 2 |
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 = { |