module RuboCop::Cop::RegexpMetacharacter

def literal_at_end?(regexp)

def literal_at_end?(regexp)
  return true if literal_at_end_with_backslash_z?(regexp)
  !safe_multiline? && literal_at_end_with_dollar?(regexp)
end