lib/rubocop/cop/lint/percent_symbol_array.rb in rbhint-0.85.1.rc1 vs lib/rubocop/cop/lint/percent_symbol_array.rb in rbhint-0.85.1.rc2
- old
+ new
@@ -59,10 +59,10 @@
literal.start_with?(':') || literal.end_with?(',')
end
end
def non_alphanumeric_literal?(literal)
- literal !~ /[[:alnum:]]/
+ !/[[:alnum:]]/.match?(literal)
end
end
end
end
end