We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d09c5 commit 92868a9Copy full SHA for 92868a9
bin/vows
@@ -257,9 +257,13 @@ if (! options.watch) {
257
258
// add full path if necessary
259
files = args.map(function (a) {
260
- return (!a.match(/^\/|c:|C:/))
261
- ? path.join(process.cwd(), a)
262
- : a;
+ if(process.platform === 'win32') {
+ // check if path starts with a valid windows drive name
+ return (!a.match(/^[a-z]:/i))? path.join(process.cwd(), a) : a;
263
+ } else {
264
+ // check if path starts at root
265
+ return (!a.match(/^\//))? path.join(process.cwd(), a) : a;
266
+ }
267
});
268
269
// preprocess the list of files for any wildcards. win32 does not handle wildcards before calling vows
0 commit comments