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

This commit is contained in:
Cohee
2025-07-21 04:02:09 +03:00
parent 4177c829d1
commit bec05909eb
@@ -637,6 +637,7 @@ export class SlashCommandParser {
replaceGetvar(value) {
return value.replace(/{{(get(?:global)?var)::([^}]+)}}/gi, (match, cmd, name, idx) => {
name = name.trim();
cmd = cmd.toLowerCase();
const startIdx = this.index - value.length + idx;
const endIdx = this.index - value.length + idx + match.length;
// store pipe