class RuboCop::Cop::Performance::RegexpMatch

def match_with_lvasgn?(node)

def match_with_lvasgn?(node)
  return false unless node.match_with_lvasgn_type?
  regexp, _rhs = *node
  regexp.to_regexp.named_captures.empty?
end