From e8a3270cd175d061b4f252078107b2096f5beba3 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 27 Aug 2021 15:24: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 4f9c1f81..84e24db5 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -389,7 +389,7 @@ const baseValues = { return baseValues.upperFirst(arg); }, strlen(arg) { - if (typeof arg !== "string") return arg; + if (typeof arg !== "string") return 0; return arg.length; }, rand(from, to, seed = null) {