Skip to content

Commit

Permalink
Update changelog for v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil authored and PgBiel committed Dec 21, 2024
1 parent 3479b17 commit 025c2d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test-package-compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ impl TestCompileOutput {
Regex::new(r#"-file\("([^"]+)", (\d+)\)\."#).expect("Invalid regex")
})
.replace_all(text, |caps: &regex::Captures| {
let path = caps.get(1).expect("file path").as_str().replace("\\", "/");
let path = caps
.get(1)
.expect("file path")
.as_str()
.replace("\\\\", "/");
let line_number = caps.get(2).expect("line number").as_str();
format!("-file(\"{}\", {}).", path, line_number)
});
Expand Down

0 comments on commit 025c2d4

Please sign in to comment.