class RuboCop::Cop::Style::RegexpLiteral
def correct_inner_slashes(node, corrector)
def correct_inner_slashes(node, corrector) regexp_begin = node.loc.begin.end_pos inner_slash_indices(node).each do |index| start = regexp_begin + index corrector.replace( range_between( start, start + inner_slash_before_correction(node).length ), inner_slash_after_correction(node) ) end end