diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-06-15 11:11:21 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-06-15 11:11:21 -0300 |
| commit | e4f8a2a306c4bf4e060c4ee323bebbd7ca4a2112 (patch) | |
| tree | 3dc1f62cf85d8f22f9cbaca566c92894bea53430 | |
| parent | f7ecb567b5a692bd6c123e17cd2813e2e1158355 (diff) | |
html: fix bad match -> slice op preview
| -rw-r--r-- | src/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.js b/src/html.js index 7b8f327a..6ae07217 100644 --- a/src/html.js +++ b/src/html.js @@ -881,7 +881,7 @@ export class Tag { } if (itemIncludesItsOwnChunkwrap || itemIncludesBreakout) { - const trailingWhitespace = content.match(/\s*$/); + const trailingWhitespace = content.match(/\s*$/)?.[0]; if (trailingWhitespace) { content = content.slice(0, -trailingWhitespace.length); } |