Skip to content

Commit aa5fc70

Browse files
author
Kyle Swanson
committed
Switch to using Posix.join
1 parent 14ff14e commit aa5fc70

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libs/url/builder.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@ module.exports.buildURL = function(opts) {
6262
if(transformationUtils.addAsQueryParameter(opts) || isSrcParameterUsedForURL) {
6363
queryParameters.set(TRANSFORMATION_PARAMETER, transformationString);
6464
} else {
65-
urlObject.pathname = path.join(
65+
urlObject.pathname = path.posix.join(
6666
[TRANSFORMATION_PARAMETER, transformationString].join(transformationUtils.getChainTransformDelimiter()),
6767
urlObject.pathname
68-
// Fix for Windows pathnames having backslashes instead of forward slashes.
69-
// TODO: Replace path.join with a different library.
70-
).replace("\\", "/")
68+
)
7169
}
7270
}
7371

0 commit comments

Comments
 (0)