Ben R.
Ben R.
originally if you threw multiple keys at this script it overwrote each key and left you with nothing but the last one. this is much better.
small changes just to aid in readibility and an improvement on a regex call
Due to my own small test packages all being set up the same way, the solution hasn't accounted for the fact that some packages won't be inside a root folder...
small fix on the ESP endpoint filtering.