Remove asterisks from Novel TTS

This commit is contained in:
Cohee 2024-03-18 00:31:28 +02:00
parent d2f0a2fa60
commit a97917d3f0
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class NovelTtsProvider {
processText(text) { processText(text) {
// Novel reads tilde as a word. Replace with full stop // Novel reads tilde as a word. Replace with full stop
text = text.replace(/~/g, '.'); text = text.replace(/~/g, '.');
// Novel reads asterisk as a word. Remove it
text = text.replace(/\*/g, '');
return text; return text;
} }