regexp/no-trivially-nested-quantifier
💼 This rule is enabled in the following configs: 🟢 flat/recommended, 🔵 recommended.
🔧 This rule is automatically fixable by the --fix CLI option.
disallow nested quantifiers that can be rewritten as one quantifier
📖 Rule Details
In some cases, nested quantifiers can be rewritten as one quantifier (e.g. (?:a{1,2}){3} -> a{3,6}).
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-regexp v0.9.0