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
0.34.2 (using Parser 2.2.2.6, running on ruby 2.2.3 x86_64-darwin14)
Performance/StringReplacement auto-corrects:
s.gsub(/x/i, 'q') s.gsub(/z/i, '')
to:
s.tr('x', 'q') s.delete('z')
The new versions no longer match X and Z respectively.
X
Z
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. I forgot to account for regex options. I am working on a fix for this now.
Sorry, something went wrong.
[Fix rubocop#2294] Allow regex with options in StringReplacement
4217327
Successfully merging a pull request may close this issue.
Performance/StringReplacement auto-corrects:
to:
The new versions no longer match
X
andZ
respectively.The text was updated successfully, but these errors were encountered: