From c5922e36034eeff11697643e37c26a16e7cce298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 25 Apr 2022 00:53:45 +0200 Subject: Scheme and js now finds HTML in text with same regex. --- static/user/user-additions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static') 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(); -- cgit v1.2.3