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
The following code results in a Use %r for regular expressions matching more than 1 '/' character. warning:
Use %r for regular expressions matching more than 1 '/' character.
# encoding: UTF-8 puts /\//m =~ '/'
It works fine when removing the m.
m
I was wondering whether the cop is intended to already report this as complex regex?
rubocop version: 0.10.0 Parser version: 2.0.0.pre2 ast version: 1.1.0
The text was updated successfully, but these errors were encountered:
Looks like a bug. I'll take a look.
Sorry, something went wrong.
Fix bug in counting slashes in a regexp.
ca0843a
Fixes rubocop#391.
jonas054
Successfully merging a pull request may close this issue.
The following code results in a
Use %r for regular expressions matching more than 1 '/' character.
warning:It works fine when removing the
m
.I was wondering whether the cop is intended to already report this as complex regex?
rubocop version: 0.10.0
Parser version: 2.0.0.pre2
ast version: 1.1.0
The text was updated successfully, but these errors were encountered: