We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40ff08e commit bb49365Copy full SHA for bb49365
src/TemplatePath.js
@@ -93,7 +93,7 @@ TemplatePath.getAllDirs = function (path) {
93
*/
94
TemplatePath.normalize = function (thePath) {
95
let filePath = path.normalize(thePath).split(path.sep).join("/");
96
- if(filePath !== path.sep && filePath.endsWith("/")) {
+ if(filePath !== "/" && filePath.endsWith("/")) {
97
return filePath.slice(0, -1);
98
}
99
return filePath;
0 commit comments