This commit is contained in:
2025-04-08 16:33:07 +02:00
parent 4ca0272d1e
commit 57766af52b

View File

@@ -207,11 +207,12 @@ class AstromicFormController extends FormController {
return controllers.keys
.where((String c) {
// Match the specific group ID and field name within the group
final RegExp pattern = RegExp(r'^' + RegExp.escape(standeredGroupFormat(targetGroupID, r'[\d+]', firstField)) + r'(-#\d+)?$');
final RegExp pattern = RegExp(r'^' + RegExp.escape(standeredGroupFormat(targetGroupID, r'[\d+]', firstField)) + r'$');
return pattern.hasMatch(c);
})
.nonNulls
.toList().length;
.toList()
.length;
}
return 0;
}