2023-12-20 23:17:46 +00:00
|
|
|
pub mod calc;
|
2023-12-20 10:08:36 +00:00
|
|
|
pub mod ip;
|
|
|
|
pub mod useragent;
|
|
|
|
|
|
|
|
macro_rules! regex {
|
|
|
|
($re:literal $(,)?) => {{
|
|
|
|
static RE: std::sync::OnceLock<regex::Regex> = std::sync::OnceLock::new();
|
|
|
|
RE.get_or_init(|| regex::Regex::new($re).unwrap())
|
|
|
|
}};
|
|
|
|
}
|
|
|
|
pub(crate) use regex;
|