tts generater split fix

This commit is contained in:
IAUSHYJ committed 2024-04-28 00:15:29 +04:00
1 parent b89b6cdc1d
commit 5aad7bcc45
1 file changed
+1 -1
+1 -1
View File
@@ -935,7 +935,7 @@
// (?<=[.!?:])\s+ instead of
// (?<=\[.!?:\])\\s+
// so I don't know whats going on here
let sentences = cleanedText.split(/(?<=\[.!?:\])\\s+|(?<=\[\u3002\uFF01\uFF1A\uFF1F\])/);
let sentences = cleanedText.split(/(?<=[\[.!?:\]])\s+|(?<=[\u3002\uFF01\uFF1A\uFF1F])/);
if (!sentences) {
console.error("No sentences found in the input text.");