use regex::RegexSet;
#[derive(Clone, Debug)]
pub struct Excludes {
pub(crate) regex: RegexSet,
}
impl Excludes {
#[inline]
#[must_use]
pub fn is_match(&self, input: &str) -> bool {
self.regex.is_match(input)
}
#[inline]
#[must_use]
pub fn is_empty(&self) -> bool {
self.regex.is_empty()
}
}