From 4e4841872371fc51a8d830a6d7ee5083ea0051e3 Mon Sep 17 00:00:00 2001 From: zoubingwu Date: Fri, 6 Jan 2023 15:47:23 +0800 Subject: [PATCH] fix(ui): Update pattern --- dm/ui/src/components/CreateOrUpdateTask/MigrateRule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dm/ui/src/components/CreateOrUpdateTask/MigrateRule.tsx b/dm/ui/src/components/CreateOrUpdateTask/MigrateRule.tsx index 79bf10ebfd6..ceb98755b3a 100644 --- a/dm/ui/src/components/CreateOrUpdateTask/MigrateRule.tsx +++ b/dm/ui/src/components/CreateOrUpdateTask/MigrateRule.tsx @@ -33,7 +33,7 @@ const itemLayout = { const createPattern = (name: string[]) => { if (name.length === 0) return '*' if (name.length === 1) return name[0] - return '~' + name.join('|') + return '~' + name.map(i => `^${i}$`).join('|') } const MigrateRule: StepCompnent = ({ prev, initialValues }) => {