fix: use different slash to split when using different OS (utils/utils)

This commit is contained in:
Ting-Jun Wang 2024-07-24 17:17:10 +08:00
parent a385819393
commit cee419609f
Signed by: snsd0805
GPG Key ID: D175E969960C4B16

View File

@ -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