tts generater split fix
This commit is contained in:
1 parent
b89b6cdc1d
commit
5aad7bcc45
1 file changed
+1
-1
@@ -935,7 +935,7 @@
|
|||||||
// (?<=[.!?:])\s+ instead of
|
// (?<=[.!?:])\s+ instead of
|
||||||
// (?<=\[.!?:\])\\s+
|
// (?<=\[.!?:\])\\s+
|
||||||
// so I don't know whats going on here
|
// 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) {
|
if (!sentences) {
|
||||||
console.error("No sentences found in the input text.");
|
console.error("No sentences found in the input text.");
|
||||||
|
|||||||
Reference in new issue
Block a user