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
… (#14969)
  • Loading branch information
mdjermanovic authored Aug 24, 2021
1 parent 2d18db6 commit b301069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-named-capture-group.md
Original file line number Diff line number Diff line change
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 b301069

Please sign in to comment.