module RuboCop::Ext::RegexpParser::Expression::Base

def start_index

def start_index
  # ts is a byte index; convert it to a character index
  @start_index ||= source.byteslice(0, ts).length
end