execute function toString bugfix

This commit is contained in:
Baipyrus 2023-01-13 15:18:53 +01:00
parent a64914b744
commit 6625782d7b

View File

@ -54,5 +54,5 @@ function cmd_exec(input) {
if (chars.length > 0)
return "Invalid input!";
// Execute input and return output
return (new Function(`return ${str}`))();
return (new Function(`return ${str}`))().toString();
}