amend regexp exec (#25986)

This commit is contained in:
夏目猫猫
2025-09-22 23:47:13 +08:00
committed by GitHub
parent 8940decd1b
commit 760a2c656c

View File

@@ -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)