mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 06:56:29 +08:00
fix variable name of input field in chinese
This commit is contained in:
parent
c837def205
commit
b24fafe901
@ -64,7 +64,7 @@ const FormContentPreview: FC<FormContentPreviewProps> = ({
|
|||||||
return (
|
return (
|
||||||
<Note
|
<Note
|
||||||
placeholder={placeholder!}
|
placeholder={placeholder!}
|
||||||
title="variableName"
|
title={name}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})(),
|
})(),
|
||||||
|
|||||||
@ -344,7 +344,7 @@ export const VAR_REGEX
|
|||||||
|
|
||||||
export const resetReg = () => (VAR_REGEX.lastIndex = 0)
|
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 resetHITLInputReg = () => HITL_INPUT_REG.lastIndex = 0
|
||||||
|
|
||||||
export const DISABLE_UPLOAD_IMAGE_AS_ICON = process.env.NEXT_PUBLIC_DISABLE_UPLOAD_IMAGE_AS_ICON === 'true'
|
export const DISABLE_UPLOAD_IMAGE_AS_ICON = process.env.NEXT_PUBLIC_DISABLE_UPLOAD_IMAGE_AS_ICON === 'true'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user