| 474 | } | 474 | } |
| 475 | | 475 | |
| 476 | if (extension_settings.tts.narrate_quoted_only) { | 476 | if (extension_settings.tts.narrate_quoted_only) { |
| 477 | const special_quotes = /[“”«»]/g; // Extend this regex to include other special quotes | 477 | const special_quotes = /[“”«»「」『』""]/g; // Extend this regex to include other special quotes |
| 478 | text = text.replace(special_quotes, '"'); | 478 | text = text.replace(special_quotes, '"'); |
| 479 | const matches = text.match(/".*?"/g); // Matches text inside double quotes, non-greedily | 479 | const matches = text.match(/".*?"/g); // Matches text inside double quotes, non-greedily |
| 480 | const partJoiner = (ttsProvider?.separator || ' ... '); | 480 | const partJoiner = (ttsProvider?.separator || ' ... '); |