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
Style/RedundantRegexpEscape false positive when used with multiline regexp with comments #8805
Comments
@owst Tagging you, since i've read in changelog you've been working on those false positives, maybe you can pitch in. |
Hi @rafal-brize, thanks for tagging me and apologies for the bug. It looks like the code that attempts to ignore comments is a bit overzealous and is treating the
which makes the I've recently been working on moving to use |
Thanks @owst for all your work, awesome! |
The fix was merged a while ago, but we forgot to close this issue. |
Provided regexp written as
that enforces:
regexp.match?("#.a") => true
regexp.match?("#aa") => false
i receive
that after autocorrect changes the behaviour to:
regexp.match?("#.a") => true
regexp.match?("#aa") => true
However
passes the Style/RedundantRegexpEscape check
RuboCop version
The text was updated successfully, but these errors were encountered: