mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
use testRunShorthandEnd
This commit is contained in:
@ -272,7 +272,7 @@ export class SlashCommandParser {
|
|||||||
cmd.command = this.commands[cmd.name];
|
cmd.command = this.commands[cmd.name];
|
||||||
this.commandIndex.push(cmd);
|
this.commandIndex.push(cmd);
|
||||||
this.take(2); //discard "/:"
|
this.take(2); //discard "/:"
|
||||||
while (!/\s/.test(this.char) && !this.testCommandEnd()) cmd.value += this.take(); // take chars until whitespace or end
|
while (!/\s/.test(this.char) && !this.testRunShorthandEnd()) cmd.value += this.take(); // take chars until whitespace or end
|
||||||
this.discardWhitespace();
|
this.discardWhitespace();
|
||||||
while (this.testNamedArgument()) {
|
while (this.testNamedArgument()) {
|
||||||
const arg = this.parseNamedArgument();
|
const arg = this.parseNamedArgument();
|
||||||
|
Reference in New Issue
Block a user