Skip to content

Commit f84c767

Browse files
committed
Removes 'regex' from dependencies
1 parent afffff2 commit f84c767

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ arca = "^0.7"
1212
byteorder = "1"
1313
clean-path = "0.2.1"
1414
concurrent_lru = "^0.2"
15-
fancy-regex = "^0.13.0"
15+
fancy-regex = { version = "^0.13.0", default-features = false }
1616
indexmap = { version = "2.7.1", features = ["serde"] }
1717
lazy_static = "1"
1818
miniz_oxide = "^0.7"
1919
mmap-rs = { version = "^0.6", optional = true }
2020
path-slash = "0.2.1"
2121
pathdiff = "^0.2"
2222
radix_trie = "0.2.1"
23-
regex = "1"
2423
serde = { version = "1", features = ["derive"] }
2524
serde_json = "1"
2625
serde_with = { version = "3", features = ["indexmap_2"] }

src/lib.rs

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

240240
lazy_static! {
241-
static ref RE: Regex = Regex::new("(const\\s+RAW_RUNTIME_STATE\\s*=\\s*|hydrateRuntimeState\\(JSON\\.parse\\()'").unwrap();
241+
static ref RE: Regex = Regex::new("(const[ \\n]+RAW_RUNTIME_STATE[ \\n]*=[ \\n]*|hydrateRuntimeState\\(JSON\\.parse\\()'").unwrap();
242242
}
243243

244244
let manifest_match = RE.find(&manifest_content)

0 commit comments

Comments
 (0)