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
RuboCop throws an error. This is because the range for the regexp literals does not contain the correct range.
Steps to reproduce the problem
Note that – below is the "em dash", not the usual -.
it'registers an offense for mixed range with invalid byte sequence in UTF-8'doexpect_offense(<<~'RUBY'.sub(/\#{message}/,message)) foo = /[\–A-z]/ ^^^ #{message} RUBYexpect_correction(<<~'RUBY') foo = /[\–A-Za-z]/ RUBYend
Expected behavior
Offense gets autocorrected.
Actual behavior
RuboCop throws an error. This is because the range for the regexp literals does not contain the correct range.
Steps to reproduce the problem
Note that
–
below is the "em dash", not the usual-
.RuboCop version
The text was updated successfully, but these errors were encountered: