mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
fix endOfText
current char must be whitespace as well
This commit is contained in:
parent
5f79579a4d
commit
8b776491e8
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user