Skip to content

Commit 9767eb9

Browse files
authored
fix: fix windows failure (#22)
fixes #15
1 parent b7e13c8 commit 9767eb9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub fn load_pnp_manifest<P: AsRef<Path>>(p: P) -> Result<Manifest, Error> {
182182

183183
lazy_static! {
184184
static ref RE: Regex = Regex::new(
185-
"(const[ \\n]+RAW_RUNTIME_STATE[ \\n]*=[ \\n]*|hydrateRuntimeState\\(JSON\\.parse\\()'"
185+
"(const[ \\r\\n]+RAW_RUNTIME_STATE[ \\r\\n]*=[ \\r\\n]*|hydrateRuntimeState\\(JSON\\.parse\\()'"
186186
)
187187
.unwrap();
188188
}

src/lib_tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ mod tests {
5858
};
5959
}
6060

61-
#[cfg(not(target_os = "windows"))]
6261
#[test]
6362
fn test_load_pnp_manifest() {
6463
load_pnp_manifest("data/pnp-yarn-v3.cjs")
@@ -68,7 +67,6 @@ mod tests {
6867
.expect("Assertion failed: Expected to load the .pnp.cjs file generated by Yarn 4");
6968
}
7069

71-
#[cfg(not(target_os = "windows"))]
7270
#[test]
7371
fn test_resolve_unqualified() {
7472
let expectations_path = std::env::current_dir()

0 commit comments

Comments
 (0)