From 54b1ea80537f73568e7e2c1b50b8c0027570b8f9 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 6 May 2021 21:27:05 +0300 Subject: [PATCH] Add ucfirst as an alias for tag function upperFirst --- backend/src/templateFormatter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index e3575301..865da3d2 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -320,6 +320,9 @@ const baseValues = { if (typeof arg !== "string") return arg; return arg.charAt(0).toUpperCase() + arg.slice(1); }, + ucfirst(arg) { + return baseValues.upperFirst(arg); + }, rand(from, to, seed = null) { if (isNaN(from)) return 0;