Skip to content

Commit

Permalink
Merge pull request #445 from floatdrop/fix-node-path-parsing
Browse files Browse the repository at this point in the history
PATH variables splitted by : in unix and can contain ::
  • Loading branch information
SBoudrias committed Dec 25, 2013
2 parents 0136cf7 + 6861e35 commit e30dfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Environment.prototype.appendDefaultPaths = function() {
// because of bugs in the parseable implementation of `ls` command and mostly
// performance issues. So, we go with our best bet for now.
if (process.env.NODE_PATH) {
process.env.NODE_PATH.split(/[,;]/g).forEach(this.appendPath, this);
_.compact(process.env.NODE_PATH.split(/[;:]/g)).forEach(this.appendPath, this);
return;
}

Expand Down

0 comments on commit e30dfd4

Please sign in to comment.