refactor(tts): remove redundant 4-space codeblock filter (#5406) * refactor(tts): remove redundant 4-space codeblock filter - Deleted the regex that removed lines starting with four spaces. - Original intent was to strip "indented code blocks" (Markdown legacy syntax). - In practice, SillyTavern already handles explicit code fences (```...``` and ~~~...~~~). - Indented code blocks are rarely used and the regex caused unnecessary text loss in normal messages. - Simplifies codeblock skipping logic and avoids accidental removal of valid content. * Remove commented out code --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

94a5773412a479b801d64f252c832771e0f4b3b1

bumprat <bumprat@users.noreply.github.com>

Signed
1 files changed, +0 -1Ignore whitespace
public/scripts/extensions/tts/index.js+0 -1
@@ -674,7 +674,6 @@ async function processTtsQueue() {
674674 text = substituteParams(text);
675675
676676 if (extension_settings.tts.skip_codeblocks) {
677- text = text.replace(/^\s{4}.*$/gm, '').trim();
678677 text = text.replace(/```.*?```/gs, '').trim();
679678 text = text.replace(/~~~.*?~~~/gs, '').trim();
680679 }