Skip to content

Commit

Permalink
Docs: fix 'When Not To Use' in prefer-named-capture-group (refs #14959)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Aug 23, 2021
1 parent 2d18db6 commit 42e8392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-named-capture-group.md
Expand Up @@ -36,7 +36,7 @@ foo.exec('bar').groups.id; // Retrieve the group result.

## When Not To Use It

If you are targeting ECMAScript 2017 and/or older environments, you can disable this rule, because this ECMAScript feature is only supported in ECMAScript 2018 and/or newer environments.
If you are targeting ECMAScript 2017 and/or older environments, you should not use this rule, because this ECMAScript feature is only supported in ECMAScript 2018 and/or newer environments.

## Related Rules

Expand Down

0 comments on commit 42e8392

Please sign in to comment.