Browse Source

fix: include blank method in ui

pull/7019/head
Pranav C 1 year ago
parent
commit
b1bd6f4435
  1. 13
      packages/nc-gui/utils/formulaUtils.ts

13
packages/nc-gui/utils/formulaUtils.ts

@ -471,10 +471,21 @@ const formulas: Record<string, any> = {
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)

Loading…
Cancel
Save