class RuboCop::Cop::Style::RegexpLiteral

def inner_slash_indices(node)

def inner_slash_indices(node)
  text    = node_body(node, include_begin_nodes: true)
  pattern = inner_slash_before_correction(node)
  index   = -1
  indices = []
  while (index = text.index(pattern, index + 1))
    indices << index
  end
  indices
end