Skip to content

Commit

Permalink
Windows bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Oct 17, 2024
1 parent 40ff08e commit bb49365
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 @@ -93,7 +93,7 @@ TemplatePath.getAllDirs = function (path) {
*/
TemplatePath.normalize = function (thePath) {
let filePath = path.normalize(thePath).split(path.sep).join("/");
if(filePath !== path.sep && filePath.endsWith("/")) {
if(filePath !== "/" && filePath.endsWith("/")) {
return filePath.slice(0, -1);
}
return filePath;
Expand Down

0 comments on commit bb49365

Please sign in to comment.