fix: use different slash to split when using different OS
This commit is contained in:
parent
9b40f22671
commit
a385819393
@ -95,7 +95,7 @@ module.exports = {
|
|||||||
slash_type = "\\";
|
slash_type = "\\";
|
||||||
}
|
}
|
||||||
// pop the last one directory
|
// pop the last one directory
|
||||||
while (dir.pop() != "\\") {
|
while (dir.pop() != slash_type) {
|
||||||
// pass
|
// pass
|
||||||
}
|
}
|
||||||
// restructure the full path
|
// restructure the full path
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user