From 032e552f6c81f2b6200469daa9fe2522a7c4b4f4 Mon Sep 17 00:00:00 2001 From: Tiago R Date: Mon, 9 Oct 2023 12:01:32 +0000 Subject: [PATCH] alias get_snowflake Signed-off-by: GitHub --- backend/src/templateFormatter.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/templateFormatter.ts b/backend/src/templateFormatter.ts index 46070649..f5b57b15 100644 --- a/backend/src/templateFormatter.ts +++ b/backend/src/templateFormatter.ts @@ -557,6 +557,11 @@ const baseValues = { if (!str || typeof str !== "string") return ""; return str.replaceAll(/[^\d]+/g, ""); }, + get_snowflake(str) { + // couldn't find a better way of aliasing :( + if (!str || typeof str !== "string") return ""; + return str.replaceAll(/[^\d]+/g, ""); + }, convert_base(value, from, to) { try { // :joy: