lib/rubocop/cop/performance/string_replacement.rb in rubocop-0.58.2 vs lib/rubocop/cop/performance/string_replacement.rb in rubocop-0.59.0

- old
+ new

@@ -85,9 +85,10 @@ return true if first_source.nil? unless first_param.str_type? return true if options return true unless first_source =~ DETERMINISTIC_REGEX + # This must be done after checking DETERMINISTIC_REGEX # Otherwise things like \s will trip us up first_source = interpret_string_escapes(first_source) end