We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50f5f47 commit 40ff08eCopy full SHA for 40ff08e
src/TemplatePath.js
@@ -92,9 +92,9 @@ TemplatePath.getAllDirs = function (path) {
92
* @returns {String} the normalized path.
93
*/
94
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);
+ let filePath = path.normalize(thePath).split(path.sep).join("/");
+ if(filePath !== path.sep && filePath.endsWith("/")) {
+ return filePath.slice(0, -1);
98
}
99
return filePath;
100
};
0 commit comments