Skip to content

Commit

Permalink
Merge pull request #486 from AndrewAsquith/windows-url-filter-fix
Browse files Browse the repository at this point in the history
forces uses of posix path separator in url normalization
  • Loading branch information
zachleat authored Apr 11, 2019
2 parents 7df0cc6 + 19501f5 commit 02c7055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TemplatePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ TemplatePath.join = function(...paths) {
* @returns {String} a normalized URL path described by the given URL path segments.
*/
TemplatePath.normalizeUrlPath = function(...urlPaths) {
const urlPath = path.join(...urlPaths);
const urlPath = path.posix.join(...urlPaths);
return urlPath.replace(/\/+$/, "/");
};

Expand Down

0 comments on commit 02c7055

Please sign in to comment.