mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
deal with pipes in quoted values (loose escaping)
This commit is contained in:
@ -647,7 +647,10 @@ export class SlashCommandParser {
|
||||
else return true;
|
||||
}
|
||||
if (!this.verifyCommandNames && this.testClosureEnd()) return true;
|
||||
return this.testSymbol('"');
|
||||
if (this.verifyCommandNames && !this.flags[PARSER_FLAG.STRICT_ESCAPING] && this.testCommandEnd()) {
|
||||
throw new SlashCommandParserError(`Unexpected end of quoted value at position ${this.index}`, this.text, this.index);
|
||||
}
|
||||
return this.testSymbol('"') || (!this.flags[PARSER_FLAG.STRICT_ESCAPING] && this.testCommandEnd());
|
||||
}
|
||||
parseQuotedValue() {
|
||||
this.take(); // discard opening quote
|
||||
|
Reference in New Issue
Block a user