aboutsummaryrefslogtreecommitdiff
path: root/src/compiled.rs
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:11:15 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:11:15 +0200
commited979a49940b3054468b48ad1a9f97fab5a2fd81 (patch)
tree0c5bd82595b6b83f77ddc327690558a43c273309 /src/compiled.rs
parent171c32577ef504ec3b8ea09bb8df00fd6be7a13d (diff)
downloadele-ed979a49940b3054468b48ad1a9f97fab5a2fd81.tar.gz
ele-ed979a49940b3054468b48ad1a9f97fab5a2fd81.zip
Use linear-time matching for overlapping phrases
Diffstat (limited to 'src/compiled.rs')
-rw-r--r--src/compiled.rs2
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)),
})
}