invalid byte sequence in UTF-8
error while linting regexp with Lint/MixedCaseRange
cop
#12703
Labels
invalid byte sequence in UTF-8
error while linting regexp with Lint/MixedCaseRange
cop
#12703
Running linting with the Lint/MixedCaseRange cop enabled leads to an error when linting the following regular expression line. Surely a complex line but not a range in the first place but rather a regular expression. Plus, the line has been working fine in production for months so while I'm not 100% sure it's a RuboCop issue, I'm tempted to say it is.
Expected behavior
No error nor linting issue is reported when running over the above line with the aforementioned cop.
Actual behavior
Running with
--debug
flag, it appears the error is an invalid byte sequence. 🤔Steps to reproduce the problem
gsub
line above to a Ruby file.bundle exec rubocop --only Lint/MixedCaseRange --debug the_file.rb
.RuboCop version
The text was updated successfully, but these errors were encountered: