From a3858193939aa9cdac5ca05111f79e76784fa0fe Mon Sep 17 00:00:00 2001 From: Ting-Jun Wang Date: Tue, 23 Jul 2024 22:33:01 +0800 Subject: [PATCH] fix: use different slash to split when using different OS --- utilities/utilities_main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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