Skip to content

Commit b301069

Browse files
authoredAug 24, 2021
Docs: fix 'When Not To Use' in prefer-named-capture-group (refs #14959) (#14969)
1 parent 2d18db6 commit b301069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/rules/prefer-named-capture-group.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ foo.exec('bar').groups.id; // Retrieve the group result.
3636

3737
## When Not To Use It
3838

39-
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.
39+
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.
4040

4141
## Related Rules
4242

0 commit comments

Comments
 (0)
Please sign in to comment.