You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
s-mage
changed the title
Performance/RedundantSplitRegexpArgument false positive for case-insensitive regexes
RedundantSplitRegexpArgument false positive for case-insensitive regexes
Mar 1, 2021
…tRegexpArgument`
Fixesrubocop#216.
This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument`
when using split method with ignore case regexp option.
…tRegexpArgument`
Fixesrubocop#216.
This PR fixes a false positive for `Performance/RedundantSplitRegexpArgument`
when using split method with ignore case regexp option.
Case-insensitive regexes shouldn't be replaced with strings in
split
Expected behavior
Don't trigger
RedundantSplitRegexpArgument
for case-insensitive regexesActual behavior
Rubocop triggers
RedundantSplitRegexpArgument
for case-insensitive regexesSteps to reproduce the problem
Run rubocop on
RuboCop version
The text was updated successfully, but these errors were encountered: