Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ matches_any
Function
matches_any
crates/opencode-util/src/util.rs:10–12 ·
view source on GitHub ↗
(patterns: &[&str], text: &str)
Source
from the content-addressed store, hash-verified
8
}
9
10
pub fn matches_any(patterns: &[&str], text: &str) -> bool {
11
patterns.iter().any(|p| matches(p, text))
12
}
13
14
pub fn filter<
'a>(pattern: &str, items: &'
a [&str]) -> Vec<&'a str> {
15
items
Callers
nothing calls this directly
Calls
1
matches
Function · 0.85
Tested by
no test coverage detected