Browse Source

fix: workflow node variable (#3743)

zxhlyh 1 year ago
parent
commit
9eebe9d54e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      web/app/components/workflow/constants.ts
  2. 1 1
      web/config/index.ts

+ 1 - 1
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,

+ 1 - 1
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