Skip to content

Commit 40ff08e

Browse files
committed
Always use posix style
1 parent 50f5f47 commit 40ff08e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TemplatePath.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ TemplatePath.getAllDirs = function (path) {
9292
* @returns {String} the normalized path.
9393
*/
9494
TemplatePath.normalize = function (thePath) {
95-
let filePath = path.normalize(thePath);
96-
if(filePath !== path.sep && filePath.endsWith(path.sep)) {
97-
return filePath.slice(0, -1 * path.sep.length);
95+
let filePath = path.normalize(thePath).split(path.sep).join("/");
96+
if(filePath !== path.sep && filePath.endsWith("/")) {
97+
return filePath.slice(0, -1);
9898
}
9999
return filePath;
100100
};

0 commit comments

Comments
 (0)