initial commit

This commit is contained in:
longfangsong 2021-09-28 10:20:29 +08:00
parent 533ca584c3
commit 0049b5b0bc
7 changed files with 184 additions and 34 deletions

View file

@ -359,6 +359,9 @@ impl VirtualPath {
}
path = &path["../".len()..]
}
while path.starts_with("./") {
path = &path["./".len()..]
}
res.0 = format!("{}/{}", res.0, path);
Some(res)
}