isaacs/minimatch — pull request #2 by mklabs (2012-01-07 16:22:10+00:00)
Title: on windows, do prefixing and split using "\\" delimiter

Hi,

I was trying to use miniglob (which is awesome, thank you so much for writing this) on windows and quickly ran into an issue where I couldn't get any results.

It took me hours to nailed it down but it seems like it is due to the prefixing on the set property of minimatch instances.

Without this delimiter check, the set propety was something like `["C:Usersmklabssrcminimatch", {}, "foo.bar"]`. With this little fix, miniglob is now working perfectly on windows too.

You may want to tweak how and where the platform check is done though, since I added the same condition, maybe it should be done once and stored.