Closed belicekm closed 9 years ago
thx,it work! // 2a) exprs with absolute paths are mounted at this.root and have no prefix to remove if(process.platform === "win32"){ read = path.join(self.root, prefix.replace(/^.:/, '')); }else{ read = path.join(self.root, prefix); }
OMG..
I'm just about to making this request, then I found you wrote exactly method than I use.
This issue affected markdown-styles on Windows.
Fixed by #2 - thanks @AaronJan
When I supply pattern with absolute path the use of path.join inside Glob.prototype._tasks (wildglob\index.js) produces invalid path.
wildglob version 0.0.1 Nodejs v0.12.0 Windows 8.1
I've added some console messages to Glob.prototype._tasks here is the output:
The code responsible for such output is inside Glob.prototype._tasks under basenames.map(..):
My quick naive fix: