From cee419609f1491f5ed2b0a119045695e02b0c628 Mon Sep 17 00:00:00 2001 From: Ting-Jun Wang Date: Wed, 24 Jul 2024 17:17:10 +0800 Subject: [PATCH] fix: use different slash to split when using different OS (utils/utils) --- utilities/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/utilities.js b/utilities/utilities.js index 1e4a66f..80a6dca 100644 --- a/utilities/utilities.js +++ b/utilities/utilities.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