STscript: fix REPLACE_GETVAR with non-lowercase {{getvar}}
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user