Merge pull request #2276 from LenAnderson/stop-parser-from-bitching-about-space-after-quote

stop parser from complaining about space after closing quote of quoted argument
This commit is contained in:
Cohee
2024-05-19 23:09:29 +03:00
committed by GitHub

View File

@ -109,7 +109,7 @@ export class SlashCommandParser {
return this.text[this.index]; return this.text[this.index];
} }
get endOfText() { 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));
} }