prevent infinity loop on resolvePath for malformed paths
Merge pull request #1 from tadeuzagallo/resolve-path-infinity-loop

Prevent infinity loop on resolvePath for malformed paths