fix: regex escaping for first-chunk cleanup
This commit is contained in:
+1
-1
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user