diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:11:15 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:11:15 +0200 |
| commit | ed979a49940b3054468b48ad1a9f97fab5a2fd81 (patch) | |
| tree | 0c5bd82595b6b83f77ddc327690558a43c273309 /src/compiled.rs | |
| parent | 171c32577ef504ec3b8ea09bb8df00fd6be7a13d (diff) | |
| download | ele-ed979a49940b3054468b48ad1a9f97fab5a2fd81.tar.gz ele-ed979a49940b3054468b48ad1a9f97fab5a2fd81.zip | |
Use linear-time matching for overlapping phrases
Diffstat (limited to 'src/compiled.rs')
| -rw-r--r-- | src/compiled.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiled.rs b/src/compiled.rs index 45c7dc3..c9f5ab8 100644 --- a/src/compiled.rs +++ b/src/compiled.rs @@ -211,7 +211,7 @@ impl<'a> Predicate<'a> { negated: op == CompareOp::NotMatchesRegexp, } } - _ => Self::Literal(op, Literal::new(literal_text(expr)?)), + _ => Self::Literal(op, Literal::new(literal_text(expr)?, op)), }) } |
