aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-05-14 17:56:49 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-05-14 17:56:49 -0500
commit6029d1a1e86bdc3259c174847743c1d1ee7423ea (patch)
tree23275c607ebd28c0ebb304cce0db8be10348136c /static
parente175bd48a74575f507f70852e878e3dc6fd644c5 (diff)
downloadembedtube-6029d1a1e86bdc3259c174847743c1d1ee7423ea.tar.xz
embedtube-6029d1a1e86bdc3259c174847743c1d1ee7423ea.zip
fix description parsing
Diffstat (limited to 'static')
-rw-r--r--static/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/static/index.js b/static/index.js
index 6505a7e..7f02f7b 100644
--- a/static/index.js
+++ b/static/index.js
@@ -42,8 +42,9 @@ function createAnchors(text) {
function _a(href, innerText) {
return `<a href="${href}" rel="noopener noreferrer">${innerText ?? href}</a>`
}
- const urlRegex = /https?:\/\/[a-z0-9#$%&-./=?@_~]+[a-z0-9/]/gi
- const channelRegex = /@[a-z0-9.-_]+/gi
+
+ const urlRegex = /https?:\/\/[a-z0-9#$%&-./:=?@_~]+[a-z0-9/]/gi
+ const channelRegex = /[^/]@[a-z0-9.-_]+/gi
const timestampRegex = /[0-9]+:[0-9]+/g
return text