mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix endOfText
current char must be whitespace as well
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user