feat(formatter): add lowercase to text transformers (#1259)

This commit is contained in:
Ömer Faruk Aydın
2023-09-01 13:26:15 +02:00
committed by GitHub
parent 762ea97e8b
commit 70772c49bd
4 changed files with 25 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import markdownToHtml from './options/markdown-to-html';
import useDefaultValue from './options/use-default-value';
import extractEmailAddress from './options/extract-email-address';
import extractNumber from './options/extract-number';
import lowercase from './options/lowercase';
const options: IJSONObject = {
capitalize,
@@ -13,6 +14,7 @@ const options: IJSONObject = {
useDefaultValue,
extractEmailAddress,
extractNumber,
lowercase,
};
export default {

View File

@@ -0,0 +1,12 @@
const lowercase = [
{
label: 'Input',
key: 'input',
type: 'string' as const,
required: true,
description: 'Text that will be lowercased.',
variables: true,
},
];
export default lowercase;