diff --git a/utilities/utilities_main.js b/utilities/utilities_main.js index 1e4a66f..80a6dca 100644 --- a/utilities/utilities_main.js +++ b/utilities/utilities_main.js @@ -95,7 +95,7 @@ module.exports = { slash_type = "\\"; } // pop the last one directory - while (dir.pop() != "\\") { + while (dir.pop() != slash_type) { // pass } // restructure the full path