From 6a8a9a1e54aebdc55c7357e0f4d105dde9973b67 Mon Sep 17 00:00:00 2001 From: metal Date: Mon, 30 Aug 2021 19:09:03 +0100 Subject: [PATCH] Update backend/src/templateFormatter.ts Co-authored-by: Almeida --- backend/src/templateFormatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;