Hi, thanks for putting this out there.
This line should escape periods in paths, otherwise the dot character will match any single character:
https://github.com/josefalcon/match-pattern/blob/master/index.js#L55
Could be solved by replacing it with with something like
regex += path.replace(/\./g, '\\.').replace(/\*/g, '.*?');