Skip to content

Commit 120492e

Browse files
committed
export path.normalizeArray for the uri module
1 parent 4dcdfaf commit 120492e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ var pathModule = createInternalModule("path", function (exports) {
670670
return exports.normalize(Array.prototype.join.call(arguments, "/"));
671671
};
672672

673-
function normalizeArray (parts) {
673+
exports.normalizeArray = function (parts) {
674674
var directories = [];
675675
for (var i = 0; i < parts.length; i++) {
676676
var directory = parts[i];
@@ -688,10 +688,10 @@ var pathModule = createInternalModule("path", function (exports) {
688688
}
689689
}
690690
return directories;
691-
}
691+
};
692692

693693
exports.normalize = function (path) {
694-
return normalizeArray(path.split("/")).join("/");
694+
return exports.normalizeArray(path.split("/")).join("/");
695695
};
696696

697697
exports.dirname = function (path) {

0 commit comments

Comments
 (0)