Merge pull request #2277 from SillyTavern/staging

Staging
This commit is contained in:
Cohee 2024-05-19 23:48:13 +03:00 committed by GitHub
commit ab75680ed3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ export class SlashCommandParser {
return this.text[this.index];
}
get endOfText() {
return this.index >= this.text.length || /^\s+$/.test(this.ahead);
return this.index >= this.text.length || (/\s/.test(this.char) && /^\s+$/.test(this.ahead));
}