Permalink
Browse files

export path.normalizeArray for the uri module

  • Loading branch information...
1 parent 4dcdfaf commit 120492e5c222f8d1b0890ea0e8170dfe7370d74c @ry ry committed Dec 22, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/node.js
View
@@ -670,7 +670,7 @@ var pathModule = createInternalModule("path", function (exports) {
return exports.normalize(Array.prototype.join.call(arguments, "/"));
};
- function normalizeArray (parts) {
+ exports.normalizeArray = function (parts) {
var directories = [];
for (var i = 0; i < parts.length; i++) {
var directory = parts[i];
@@ -688,10 +688,10 @@ var pathModule = createInternalModule("path", function (exports) {
}
}
return directories;
- }
+ };
exports.normalize = function (path) {
- return normalizeArray(path.split("/")).join("/");
+ return exports.normalizeArray(path.split("/")).join("/");
};
exports.dirname = function (path) {

0 comments on commit 120492e

Please sign in to comment.