fix: use different slash to split when using different OS

This commit is contained in:
Ting-Jun Wang 2024-07-23 22:33:01 +08:00
parent 9b40f22671
commit a385819393
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