11 lines
257 B
Rust
11 lines
257 B
Rust
|
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;
|