fix: regex escaping for first-chunk cleanup
This commit is contained in:
+1
-1
@@ -219,7 +219,7 @@ class SXNGPlugin(Plugin):
|
|||||||
if (chunk) {{
|
if (chunk) {{
|
||||||
let text = chunk;
|
let text = chunk;
|
||||||
if (!started) {{
|
if (!started) {{
|
||||||
text = text.replace(/^[\\s.,;:!?]+/, '');
|
text = text.replace(/^[\s.,;:!?]+/, '');
|
||||||
if (!text) continue;
|
if (!text) continue;
|
||||||
data.appendChild(cursor);
|
data.appendChild(cursor);
|
||||||
box.style.display = 'block';
|
box.style.display = 'block';
|
||||||
|
|||||||
Reference in New Issue
Block a user