From 120492e5c222f8d1b0890ea0e8170dfe7370d74c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 22 Dec 2009 17:50:23 +0100 Subject: [PATCH] export path.normalizeArray for the uri module --- src/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.js b/src/node.js index e255c19297..69416d0ebb 100644 --- a/src/node.js +++ b/src/node.js @@ -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) {