From 4872e51696204db1e23d8c2d1895a35c7a1cf357 Mon Sep 17 00:00:00 2001 From: Boshen Date: Mon, 30 Jun 2025 14:54:14 +0800 Subject: [PATCH] fix: fix windows failure fixes #15 --- src/lib.rs | 2 +- src/lib_tests.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ca6288d..7f44c2d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -182,7 +182,7 @@ pub fn load_pnp_manifest>(p: P) -> Result { lazy_static! { static ref RE: Regex = Regex::new( - "(const[ \\n]+RAW_RUNTIME_STATE[ \\n]*=[ \\n]*|hydrateRuntimeState\\(JSON\\.parse\\()'" + "(const[ \\r\\n]+RAW_RUNTIME_STATE[ \\r\\n]*=[ \\r\\n]*|hydrateRuntimeState\\(JSON\\.parse\\()'" ) .unwrap(); } diff --git a/src/lib_tests.rs b/src/lib_tests.rs index bef5f84..44ad700 100644 --- a/src/lib_tests.rs +++ b/src/lib_tests.rs @@ -58,7 +58,6 @@ mod tests { }; } - #[cfg(not(target_os = "windows"))] #[test] fn test_load_pnp_manifest() { load_pnp_manifest("data/pnp-yarn-v3.cjs") @@ -68,7 +67,6 @@ mod tests { .expect("Assertion failed: Expected to load the .pnp.cjs file generated by Yarn 4"); } - #[cfg(not(target_os = "windows"))] #[test] fn test_resolve_unqualified() { let expectations_path = std::env::current_dir()