mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	add missing start/end named arg index to /:
This commit is contained in:
		| @@ -922,11 +922,13 @@ export class SlashCommandParser { | |||||||
|         else assignment.value = this.parseValue(); |         else assignment.value = this.parseValue(); | ||||||
|         cmd.unnamedArgumentList = [assignment]; |         cmd.unnamedArgumentList = [assignment]; | ||||||
|         this.discardWhitespace(); |         this.discardWhitespace(); | ||||||
|  |         cmd.startNamedArgs = this.index; | ||||||
|         while (this.testNamedArgument()) { |         while (this.testNamedArgument()) { | ||||||
|             const arg = this.parseNamedArgument(); |             const arg = this.parseNamedArgument(); | ||||||
|             cmd.namedArgumentList.push(arg); |             cmd.namedArgumentList.push(arg); | ||||||
|             this.discardWhitespace(); |             this.discardWhitespace(); | ||||||
|         } |         } | ||||||
|  |         cmd.endNamedArgs = this.index; | ||||||
|         this.discardWhitespace(); |         this.discardWhitespace(); | ||||||
|         // /run shorthand does not take unnamed arguments (the command name practically *is* the unnamed argument) |         // /run shorthand does not take unnamed arguments (the command name practically *is* the unnamed argument) | ||||||
|         if (this.testRunShorthandEnd()) { |         if (this.testRunShorthandEnd()) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user