编排添加正则提取/替换

This commit is contained in:
fofolee
2024-12-31 15:32:31 +08:00
parent c163bdd9d6
commit b532630ab9
15 changed files with 1862 additions and 58 deletions

View File

@@ -144,24 +144,12 @@ export const textProcessingCommands = {
],
},
{
value: "quickcomposer.textProcessing.regexExtract",
label: "正则提取",
config: [
{
key: "text",
label: "原始文本",
type: "input",
defaultValue: "",
icon: "text_fields",
},
{
key: "regex",
label: "正则表达式",
type: "input",
defaultValue: "",
icon: "regex",
},
],
value: "quickcomposer.textProcessing.regexTransform",
label: "正则提取/替换",
component: "RegexEditor",
componentProps: {
inputLabel: "要处理的文本",
},
},
],
};