Skip to content


💼 This rule is enabled in the following configs: 🟢 flat/recommended, 🔵 recommended.

💡 This rule is manually fixable by editor suggestions.

disallow quantifiers with a maximum of zero

📖 Rule Details

This rule reports quantifiers with a maximum of zero. These quantifiers trivially do not affect the pattern is any way and can be removed.

Now loading...

🔧 Options


🚀 Version

This rule was introduced in eslint-plugin-regexp v0.10.0

🔍 Implementation