We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dcdfaf commit 120492eCopy full SHA for 120492e
1 file changed
src/node.js
@@ -670,7 +670,7 @@ var pathModule = createInternalModule("path", function (exports) {
670
return exports.normalize(Array.prototype.join.call(arguments, "/"));
671
};
672
673
- function normalizeArray (parts) {
+ exports.normalizeArray = function (parts) {
674
var directories = [];
675
for (var i = 0; i < parts.length; i++) {
676
var directory = parts[i];
@@ -688,10 +688,10 @@ var pathModule = createInternalModule("path", function (exports) {
688
}
689
690
return directories;
691
- }
+ };
692
693
exports.normalize = function (path) {
694
- return normalizeArray(path.split("/")).join("/");
+ return exports.normalizeArray(path.split("/")).join("/");
695
696
697
exports.dirname = function (path) {
0 commit comments