class Bootsnap::LoadPathCache::LoadedFeaturesIndex

def identify(short, cursor)

def identify(short, cursor)
  $LOADED_FEATURES[cursor..].detect do |feat|
    offset = 0
    while (offset = feat.index(short, offset))
      if feat.index(".", offset + 1) && !feat.index("/", offset + 2)
        break true
      else
        offset += 1
      end
    end
  end
end