add , separate
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ function update_tts_texts(text){
|
|
103 |
const replaced_text = replaceSpecialChars(text)
|
104 |
const new_texts = []
|
105 |
//const splited = replaced_text.split(/[.!?]+\s*/);
|
106 |
-
const splited = replaced_text.match(/[
|
107 |
|
108 |
for (let i = 0; i < splited.length; i++) {
|
109 |
const value = splited[i].trim();
|
|
|
103 |
const replaced_text = replaceSpecialChars(text)
|
104 |
const new_texts = []
|
105 |
//const splited = replaced_text.split(/[.!?]+\s*/);
|
106 |
+
const splited = replaced_text.match(/[^.?!,]+[.?!,]+\s?/g);
|
107 |
|
108 |
for (let i = 0; i < splited.length; i++) {
|
109 |
const value = splited[i].trim();
|