save prompt (#401)
Some checks are pending
Check Whitespace and New Line / check (push) Waiting to run
Deploy Doxygen to Pages / build (push) Waiting to run
Deploy Doxygen to Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Ho-spair 2024-10-25 17:17:29 +08:00 committed by GitHub
parent 29d20089b4
commit 3e75096e22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,10 +38,10 @@ function processPrompt(prompt) {
if (data.length > 3) {
for (let i = 4; i < data.length; i++) {
raw = raw.replace(new RegExp("%arg" + (i - 2), "g"), data[i]);
raw = raw.replace(new RegExp("%arg" + (i - 2), "g"), luatr(data[i]));
}
raw = raw.replace(new RegExp("%arg", "g"), data[3]);
raw = raw.replace(new RegExp("%arg", "g"), luatr(data[3]));
}
return raw;
}