aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse/regex
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-06-03 20:16:00 +0200
committerJonas Maier <jonas@x77.dev>2026-06-03 20:19:16 +0200
commit38e8e7bf000aaa1f7f6be15d72be35d6dc585271 (patch)
tree09b08f221e6bb2a64767a4e1e77c63f246cd0a43 /src/parse/regex
parent5ce263b586c5047d16ee93cc53bc3bce6f7ff12c (diff)
downloadpish-38e8e7bf000aaa1f7f6be15d72be35d6dc585271.tar.gz
shitton of test cases that codex generated
Diffstat (limited to 'src/parse/regex')
-rw-r--r--src/parse/regex/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/regex/mod.rs b/src/parse/regex/mod.rs
index b8dd8ba..f35d3f2 100644
--- a/src/parse/regex/mod.rs
+++ b/src/parse/regex/mod.rs
@@ -271,8 +271,8 @@ impl Pattern {
}
impl CompiledPattern {
- pub fn matches(&self, bytes: &[u8]) -> bool {
- self.dfa.matches(bytes)
+ pub fn matches(&self, bytes: impl AsRef<[u8]>) -> bool {
+ self.dfa.matches(bytes.as_ref())
}
}