aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse/regex/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/regex/mod.rs b/src/parse/regex/mod.rs
index 10d332e..6add7a8 100644
--- a/src/parse/regex/mod.rs
+++ b/src/parse/regex/mod.rs
@@ -282,7 +282,8 @@ macro_rules! regex_matches {
assert_eq!(
Pattern::parse_from_bytes($regex.as_bytes())
.unwrap()
- .compile()
+ .try_compile()
+ .unwrap()
.matches($match.as_bytes()),
$true
)