From b24fafe9012fc3b3c0d2ab925547dafdf832ffa8 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 12 Jan 2026 15:33:37 +0800 Subject: [PATCH] fix variable name of input field in chinese --- .../nodes/human-input/components/form-content-preview.tsx | 2 +- web/config/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx index 10691ce95b..bfe8f428da 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx @@ -64,7 +64,7 @@ const FormContentPreview: FC = ({ return ( ) })(), diff --git a/web/config/index.ts b/web/config/index.ts index 5f2fc97178..2bc76a481c 100644 --- a/web/config/index.ts +++ b/web/config/index.ts @@ -344,7 +344,7 @@ export const VAR_REGEX export const resetReg = () => (VAR_REGEX.lastIndex = 0) -export const HITL_INPUT_REG = /\{\{(#\$output\.(?:[a-z_]\w{0,29}){1,10}#)\}\}/gi +export const HITL_INPUT_REG = /\{\{(#\$output\.(?:[\p{L}_][\p{L}\d_]{0,29}){1,10}#)\}\}/giu export const resetHITLInputReg = () => HITL_INPUT_REG.lastIndex = 0 export const DISABLE_UPLOAD_IMAGE_AS_ICON = process.env.NEXT_PUBLIC_DISABLE_UPLOAD_IMAGE_AS_ICON === 'true'