From 9eebe9d54ed4a3fcf422f819a312b7f66884686e Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Wed, 24 Apr 2024 11:41:12 +0800 Subject: [PATCH] fix: workflow node variable (#3743) --- web/app/components/workflow/constants.ts | 2 +- web/config/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/constants.ts b/web/app/components/workflow/constants.ts index 2785bc088a..e9818ea19c 100644 --- a/web/app/components/workflow/constants.ts +++ b/web/app/components/workflow/constants.ts @@ -230,7 +230,7 @@ export const NODE_WIDTH = 240 export const X_OFFSET = 60 export const NODE_WIDTH_X_OFFSET = NODE_WIDTH + X_OFFSET export const Y_OFFSET = 39 -export const MAX_TREE_DEEPTH = 30 +export const MAX_TREE_DEEPTH = 50 export const START_INITIAL_POSITION = { x: 80, y: 282 } export const AUTO_LAYOUT_OFFSET = { x: -42, diff --git a/web/config/index.ts b/web/config/index.ts index eefe1f8aba..7d6e9a053e 100644 --- a/web/config/index.ts +++ b/web/config/index.ts @@ -242,4 +242,4 @@ Thought: {{agent_scratchpad}} `, } -export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi +export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_-]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi