aboutsummaryrefslogtreecommitdiff
path: root/static/user
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-25 00:53:45 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-04-25 00:53:45 +0200
commitc5922e36034eeff11697643e37c26a16e7cce298 (patch)
treea8e94154463c1c31509f35d104e7eab7ad92a3b6 /static/user
parentChange user-additions HTML detection. (diff)
downloadcalp-c5922e36034eeff11697643e37c26a16e7cce298.tar.gz
calp-c5922e36034eeff11697643e37c26a16e7cce298.tar.xz
Scheme and js now finds HTML in text with same regex.
Diffstat (limited to 'static/user')
-rw-r--r--static/user/user-additions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/user/user-additions.js b/static/user/user-additions.js
index d357b4b5..0de825e8 100644
--- a/static/user/user-additions.js
+++ b/static/user/user-additions.js
@@ -1,5 +1,5 @@
window.formatters.set('description', (el, d) => {
- if (/<\/?\w+( \w+(="?\w+"?)?)*\/?>/.exec(d)) {
+ if (/<\/?\w+( +\w+(=["']?\w+["']?)?)* *\/?>/.exec(d)) {
/* Assume that the text is HTML if it contains something which looks
like an HTML tag */
let parser = new DOMParser();