lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-0.85.1 vs lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-0.86.0

- old
+ new

@@ -172,10 +172,10 @@ below_ternary_precedence?(child) end end def unparenthesized_method_call?(child) - method_name(child) =~ /^[a-z]/i && !child.parenthesized? + /^[a-z]/i.match?(method_name(child)) && !child.parenthesized? end def below_ternary_precedence?(child) # Handle English "or", e.g. 'foo or bar ? a : b' (child.or_type? && child.semantic_operator?) ||