fix: regex escaping for first-chunk cleanup

This commit is contained in:
cra88y
2026-01-11 10:56:11 -06:00
parent 0ce0bc2da1
commit 4a16b6360b
+1 -1
View File
@@ -219,7 +219,7 @@ class SXNGPlugin(Plugin):
if (chunk) {{
let text = chunk;
if (!started) {{
text = text.replace(/^[\\s.,;:!?]+/, '');
text = text.replace(/^[\s.,;:!?]+/, '');
if (!text) continue;
data.appendChild(cursor);
box.style.display = 'block';