fix variable name of input field in chinese

This commit is contained in:
JzoNg 2026-01-12 15:33:37 +08:00
parent c837def205
commit b24fafe901
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ const FormContentPreview: FC<FormContentPreviewProps> = ({
return (
<Note
placeholder={placeholder!}
title="variableName"
title={name}
/>
)
})(),

View File

@ -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'