From b6db6d9305eb709b42c960929a52119a9d412adf Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 12 Jan 2026 15:53:40 +0800 Subject: [PATCH] revert regex for output variable name --- web/config/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/config/index.ts b/web/config/index.ts index 2bc76a481c..5f2fc97178 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\.(?:[\p{L}_][\p{L}\d_]{0,29}){1,10}#)\}\}/giu +export const HITL_INPUT_REG = /\{\{(#\$output\.(?:[a-z_]\w{0,29}){1,10}#)\}\}/gi 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'