class RSpec::Core::Configuration

def extract_location(path)

def extract_location(path)
  match = /^(.*?)((?:\:\d+)+)$/.match(path)
  if match
    captures = match.captures
    path, lines = captures[0], captures[1][1..-1].split(":").map { |n| n.to_i }
    filter_manager.add_location path, lines
  end
  return [] if path == default_path
  path
end