From b1bd6f4435c5c8d20379073d9aa27776a675c335 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 22 Nov 2023 07:17:55 +0000 Subject: [PATCH] fix: include blank method in ui --- packages/nc-gui/utils/formulaUtils.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/utils/formulaUtils.ts b/packages/nc-gui/utils/formulaUtils.ts index 890329bbca..aac7611cf9 100644 --- a/packages/nc-gui/utils/formulaUtils.ts +++ b/packages/nc-gui/utils/formulaUtils.ts @@ -471,10 +471,21 @@ const formulas: Record = { rqd: 3, }, }, - description: '"Substitutes all matching substrings with a replacement string value."', + description: 'Substitutes all matching substrings with a replacement string value.', syntax: 'REGEX_MATCH(string, regex, replacement)', examples: ['REGEX_EXTRACT({title}, "abc.*", "abcd")'], }, + BLANK: { + type: formulaTypes.STRING, + validation: { + args: { + rqd: 0, + }, + }, + description: 'Returns an empty string.', + syntax: 'BLANK()', + examples: ['BLANK()'], + }, } const formulaList = Object.keys(formulas)