diff --git a/crates/zkevm_test_harness/Cargo.toml b/crates/zkevm_test_harness/Cargo.toml index 64835e5..f8f1dd3 100644 --- a/crates/zkevm_test_harness/Cargo.toml +++ b/crates/zkevm_test_harness/Cargo.toml @@ -44,7 +44,7 @@ env_logger = "0.9" smallvec = "1.13" structopt = "0.3.26" codegen = "0.2.0" -regex = { version = "1.10.6", features = ["pattern"] } +regex = "1.11.1" [dev-dependencies] rand = "0.4" diff --git a/crates/zkevm_test_harness/src/tests/utils/preprocess_asm.rs b/crates/zkevm_test_harness/src/tests/utils/preprocess_asm.rs index 958ef3e..8bb2a15 100644 --- a/crates/zkevm_test_harness/src/tests/utils/preprocess_asm.rs +++ b/crates/zkevm_test_harness/src/tests/utils/preprocess_asm.rs @@ -74,7 +74,7 @@ fn replace_tags_in_template( let mut result = asm_template.clone(); let template_regex = Regex::new(r#"\$\{[^\}]+\}"#).expect("Invalid regex"); - for (_, matched) in asm_template.match_indices(&template_regex) { + for matched in template_regex.find_iter(&asm_template).map(|m| m.as_str()) { let prefix = "${"; let suffix = "}"; let key_to_replace = matched @@ -111,7 +111,7 @@ fn link_additional_contracts( // regex: