module RuboCop::Cop::RegexpMetacharacter
def drop_start_metacharacter(regexp_string)
def drop_start_metacharacter(regexp_string) if regexp_string.start_with?('\\A') regexp_string[2..] # drop `\A` anchor else regexp_string[1..] # drop `^` anchor end end