I've amended this to no longer return GUIDs for paths like:
If you need to capture this GUID used as a container (via some a new method), I'm open to adding that.
i noticed that my plugin that uses this gist was totally failing to return any data from the analyze function.
if i test this using my handy regex tester tool (https://regex101.com/) i notice two apparent problems:
if i remove the backslashes and use a url that does have a path (after the domain) then it appears to work ok.
why are those slashes in there? won't they always stop the code from working properly? (at all)