Skip to content

Commit 4253de9

Browse files
authored
Merge pull request #88 from rutar-forks/better-panic-parse
Slightly better panic message when non-match is not caught by prefilter
2 parents 4f561f8 + cb06e27 commit 4253de9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

matcher/src/fuzzy_optimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Matcher {
3636
if !matched {
3737
assert!(
3838
!N::ASCII || !H::ASCII,
39-
"should have been caught by prefilter"
39+
"Non-match should have been caught by prefilter. Maybe `needle` is not normalized?"
4040
);
4141
return None;
4242
}

0 commit comments

Comments
 (0)