class RuboCop::Cop::Style::CaseLikeIf

def regexp_with_named_captures?(node)

def regexp_with_named_captures?(node)
  node.regexp_type? && node.each_capture(named: true).count.positive?
end