diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index 84e24db5..2ed902d9 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -390,7 +390,7 @@ const baseValues = { }, strlen(arg) { if (typeof arg !== "string") return 0; - return arg.length; + return [...arg].length; }, rand(from, to, seed = null) { if (isNaN(from)) return 0;