diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index 7ac3428c..e3575301 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -316,6 +316,10 @@ const baseValues = { if (typeof arg !== "string") return arg; return arg.toUpperCase(); }, + upperFirst(arg) { + if (typeof arg !== "string") return arg; + return arg.charAt(0).toUpperCase() + arg.slice(1); + }, rand(from, to, seed = null) { if (isNaN(from)) return 0;