Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #8205] Avoid false positive in Style/RedundantRegexpCharacterClass
If the first element of a character class was an escaped-] our pattern was treating it as a single element classs containing a single backslash (which is invalid, and incorrect).
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters