From d4585f24a1bcd0b8ecfef5d7e52e7b8263ee9dc8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Apr 2024 21:36:12 -0300 Subject: html: handle chunkwrap chunks not split by whitespace --- src/util/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 += ''; content += whitespace; -- cgit 1.3.0-6-gf8a5