Reports trivially nested quantifiers in regular expressions that can be simplified.
✅ This rule is included in the ts logical presets.
When a non-capturing group contains a single quantified element and the group itself is quantified, the nested quantifiers can often be combined into a single quantifier.
This rule reports trivially nested quantifiers in regular expressions that can be simplified.
If you prefer to keep the nested structure for readability or documentation purposes, or if you need the specific behavior of the non-capturing group for replacement operations, you might prefer to disable this rule.
You might consider using Flint disable comments and/or configuration file disables for those specific situations instead of completely disabling this rule.