class RSpec::Core::Configuration

def extract_location(path)

def extract_location(path)
  match = /^(.*?)((?:\:\d+)+)$/.match(path)
  if match
    captures = match.captures
    path = captures[0]
    lines = captures[1][1..-1].split(":").map(&:to_i)
    filter_manager.add_location path, lines
  else
    path, scoped_ids = Example.parse_id(path)
    filter_manager.add_ids(path, scoped_ids.split(/\s*,\s*/)) if scoped_ids
  end
  return [] if path == default_path
  path
end