module RuboCop::Cop::RegexpMetacharacter
def literal_at_end_with_dollar?(regex_str)
def literal_at_end_with_dollar?(regex_str) # is this regexp 'literal' in the sense of only matching literal # chars, rather than using metachars like . and * and so on? # also, is it anchored at the end of the string? /\A(?:#{Util::LITERAL_REGEX})+\$\z/o.match?(regex_str) end