fix: unescape inline module names in module resolution

This commit is contained in:
Ryo Yoshida 2023-01-04 18:20:15 +09:00
parent 643bc02ded
commit 21ea0048cd
No known key found for this signature in database
GPG key ID: E25698A930586171
2 changed files with 38 additions and 1 deletions

View file

@ -34,7 +34,7 @@ impl ModDir {
let path = match attr_path.map(SmolStr::as_str) {
None => {
let mut path = self.dir_path.clone();
path.push(&name.to_smol_str());
path.push(&name.unescaped().to_smol_str());
path
}
Some(attr_path) => {