Skip to content

Commit 61916a2

Browse files
committed
Update
1 parent ab8aaf9 commit 61916a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/parser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mxmlextrema-as3parser"
3-
version = "1.6.1"
3+
version = "1.6.2"
44
edition = "2021"
55
authors = ["Matheus Dias de Souza <[email protected]>"]
66
repository = "https://github.com/mxmlextrema/as3parser"

crates/parser/compilation_unit/compilation_unit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,5 @@ impl CompilationUnit {
249249
}
250250

251251
fn canonicalize_path(path: &str) -> String {
252-
realhydroper_path::canonicalize_inexistent_path(std::path::Path::new(path)).to_string_lossy().into_owned()
252+
realhydroper_path::normalize_path(std::path::Path::new(path)).to_string_lossy().into_owned()
253253
}

crates/parser/parser/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3692,11 +3692,11 @@ impl<'input> Parser<'input> {
36923692
} else {
36933693
// Read included content
36943694

3695-
let sub_file_path_pathbuf = realhydroper_path::canonicalize_inexistent_path(&sub_flex_file_path.to_path_buf());
3695+
let sub_file_path_pathbuf = realhydroper_path::normalize_path(&sub_flex_file_path.to_path_buf());
36963696
let mut replaced = false;
36973697

36983698
for (replace_file_path, content) in self.replace_included_content.read().unwrap().iter() {
3699-
if sub_file_path_pathbuf == realhydroper_path::canonicalize_inexistent_path(&replace_file_path) {
3699+
if sub_file_path_pathbuf == realhydroper_path::normalize_path(&replace_file_path) {
37003700
nested_compilation_unit = Some(CompilationUnit::new(Some(sub_file_path_pathbuf.to_str().unwrap().to_owned()), content.clone()));
37013701
replaced = true;
37023702
break;

0 commit comments

Comments
 (0)