From b1c51e7316079486b398f11052acf4caf91b4f61 Mon Sep 17 00:00:00 2001 From: Usoka <27248545+Usoka@users.noreply.github.com> Date: Sun, 2 May 2021 21:30:27 +1200 Subject: [PATCH] Add upper function --- backend/src/templateFormatter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index 313a884f..7ac3428c 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -312,6 +312,10 @@ const baseValues = { if (typeof arg !== "string") return arg; return arg.toLowerCase(); }, + upper(arg) { + if (typeof arg !== "string") return arg; + return arg.toUpperCase(); + }, rand(from, to, seed = null) { if (isNaN(from)) return 0;