#![forbid(unsafe_code, future_incompatible, rust_2018_idioms)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
use lazy_static::lazy_static;
use regex::Regex as Rgx;
pub static REGEX: &str = concat!(
r"^npm-debug\.log$|", r"^\..*\.swp$|", r"^\.DS_Store$|", r"^\.AppleDouble$|", r"^\.LSOverride$|", r"^Icon\r$|", r"^\._.*|", r"^.Spotlight-V100(?:$|/)|", r"\.Trashes|", r"^__MACOSX$|", r"~$|", r"^Thumbs\.db$|", r"^ehthumbs\.db$|", r"^Desktop\.ini$|", r"@eaDir$", );
pub fn is(filename: &str) -> bool {
lazy_static! {
static ref RE: Rgx = Rgx::new(REGEX).unwrap();
}
RE.is_match(filename)
}
pub fn not(filename: &str) -> bool {
!is(filename)
}