diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-03 21:36:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-03 21:36:12 -0300 |
commit | d4585f24a1bcd0b8ecfef5d7e52e7b8263ee9dc8 (patch) | |
tree | e7df0073dc68e67976a5341bd47c7a3e27b62e95 | |
parent | baeaa0f7a8f88bc56101337ae8f4443d21b089e3 (diff) |
html: handle chunkwrap chunks not split by whitespace
-rw-r--r-- | src/util/html.js | 2 |
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; |