STscript: fix REPLACE_GETVAR with non-lowercase {{getvar}}

bec05909ebe591e32c6b581ed87e58887ed2e0fa

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Ignore whitespace
public/scripts/slash-commands/SlashCommandParser.js+1 -0
@@ -637,6 +637,7 @@ export class SlashCommandParser {
637 replaceGetvar(value) {637 replaceGetvar(value) {
638 return value.replace(/{{(get(?:global)?var)::([^}]+)}}/gi, (match, cmd, name, idx) => {638 return value.replace(/{{(get(?:global)?var)::([^}]+)}}/gi, (match, cmd, name, idx) => {
639 name = name.trim();639 name = name.trim();
640 cmd = cmd.toLowerCase();
640 const startIdx = this.index - value.length + idx;641 const startIdx = this.index - value.length + idx;
641 const endIdx = this.index - value.length + idx + match.length;642 const endIdx = this.index - value.length + idx + match.length;
642 // store pipe643 // store pipe