Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for windows drives other than c:

  • Loading branch information...
commit 92868a96f55d2e94a93de3e5f0de7224bbd6299e 1 parent f7d09c5
Dale Stammen stammen authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 bin/vows
10 bin/vows
View
@@ -257,9 +257,13 @@ if (! options.watch) {
// add full path if necessary
files = args.map(function (a) {
- return (!a.match(/^\/|c:|C:/))
- ? path.join(process.cwd(), a)
- : 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;
+ } else {
+ // check if path starts at root
+ return (!a.match(/^\//))? path.join(process.cwd(), a) : a;
+ }
});
// preprocess the list of files for any wildcards. win32 does not handle wildcards before calling vows
Please sign in to comment.
Something went wrong with that request. Please try again.