We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using an escaped square bracket in a character class, rubocop suggests incorrect fix.
[(\[]TM[\])] passes the RedundantRegexpCharacterClass check.
[(\[]TM[\])]
C: Style/RedundantRegexpCharacterClass: Redundant single-element character class, [\] can be replaced with \.
Run the check on a line with:
/\b ?[(\[]TM[\])]/i
0.86.0 (using Parser 2.7.1.4, rubocop-ast 0.0.3, running on ruby 2.6.6 x86_64-darwin18)
The text was updated successfully, but these errors were encountered:
8caec83
Merge pull request #8206 from owst/fix_8205_false_positive_in_redunda…
423323c
…ntregexpcharacterclass [Fix #8205] Avoid false positive in Style/RedundantRegexpCharacterClass
No branches or pull requests
When using an escaped square bracket in a character class, rubocop suggests incorrect fix.
Expected behavior
[(\[]TM[\])]
passes the RedundantRegexpCharacterClass check.Actual behavior
Steps to reproduce the problem
Run the check on a line with:
RuboCop version
The text was updated successfully, but these errors were encountered: