We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579d8a7 commit 6794d4bCopy full SHA for 6794d4b
1 file changed
src/matcher.rs
@@ -94,7 +94,7 @@ impl<R: RegExp> Matcher<R> {
94
Some(vec![Some(input)])
95
}
96
InnerMatcher::RegExp { regexp, .. } => {
97
- regexp.as_ref().unwrap().matches(input)
+ regexp.as_ref().ok()?.matches(input)
98
99
100
0 commit comments