fix endOfText

current char must be whitespace as well
This commit is contained in:
LenAnderson 2024-05-19 15:52:30 -04:00
parent 5f79579a4d
commit 8b776491e8

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));
}