瀏覽代碼

amend regexp exec (#25986)

tags/1.9.0
夏目猫猫 1 月之前
父節點
當前提交
760a2c656c
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      web/app/components/workflow/nodes/variable-assigner/use-config.ts

+ 1
- 1
web/app/components/workflow/nodes/variable-assigner/use-config.ts 查看文件

@@ -124,7 +124,7 @@ const useConfig = (id: string, payload: VariableAssignerNodeType) => {
const handleAddGroup = useCallback(() => {
let maxInGroupName = 1
inputs.advanced_settings.groups.forEach((item) => {
const match = item.group_name.match(/(\d+)$/)
const match = /(\d+)$/.exec(item.group_name)
if (match) {
const num = Number.parseInt(match[1], 10)
if (num > maxInGroupName)

Loading…
取消
儲存