mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
TTS: add slash command to speak
This commit is contained in:
@ -82,7 +82,8 @@ class SlashCommandParser {
|
||||
if (equalsIndex !== -1) {
|
||||
const key = arg.substring(0, equalsIndex);
|
||||
const value = arg.substring(equalsIndex + 1);
|
||||
argObj[key] = value;
|
||||
// Replace "wrapping quotes" used for escaping spaces
|
||||
argObj[key] = value.replace(/(^")|("$)/g, '');
|
||||
}
|
||||
else {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user