« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/util/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/html.js b/src/util/html.js
index 7e6a6681..6f75e57a 100644
--- a/src/util/html.js
+++ b/src/util/html.js
@@ -697,7 +697,7 @@ export class Tag {
             if (index === 0) {
               content += chunk;
             } else {
-              const whitespace = chunk.match(/^\s+/);
+              const whitespace = chunk.match(/^\s+/) ?? '';
               content += chunkwrapSplitter;
               content += '</span>';
               content += whitespace;