Skip to content
New issue

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

weaken 'complex regex' cop #391

Closed
dirkbolte opened this issue Jul 24, 2013 · 1 comment · Fixed by #396
Closed

weaken 'complex regex' cop #391

dirkbolte opened this issue Jul 24, 2013 · 1 comment · Fixed by #396
Assignees
Labels

Comments

@dirkbolte
Copy link
Contributor

The following code results in a Use %r for regular expressions matching more than 1 '/' character. warning:

# encoding: UTF-8
puts /\//m =~ '/'

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

@ghost ghost assigned jonas054 Jul 27, 2013
@jonas054
Copy link
Collaborator

Looks like a bug. I'll take a look.

jonas054 added a commit to jonas054/rubocop that referenced this issue Jul 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants