From ed979a49940b3054468b48ad1a9f97fab5a2fd81 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 14:11:15 +0200 Subject: Use linear-time matching for overlapping phrases --- src/compiled.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiled.rs') 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)), }) } -- cgit v1.3.1