useregex::Regex;/// Compile a regular expression from a source-literal pattern.
#[allow(
clippy::unwrap_used,
reason ="static regex literal verified at first use; failure is a build-time bug in this crate")]pub(crate)fncompile_static(pattern:&'staticstr)-> Regex{Regex::new(pattern).unwrap()}