pub mod utils;
pub mod version;
-use crate::settings::structs::Settings;
use http::StatusCode;
-use regex::Regex;
+
use std::fmt;
use thiserror::Error;
}
}
}
-
-lazy_static! {
- pub static ref WEBFINGER_COMMUNITY_REGEX: Regex = Regex::new(&format!(
- "^group:([a-z0-9_]{{3,}})@{}$",
- Settings::get().hostname
- ))
- .expect("compile webfinger regex");
- pub static ref WEBFINGER_USERNAME_REGEX: Regex = Regex::new(&format!(
- "^acct:([a-z0-9_]{{3,}})@{}$",
- Settings::get().hostname
- ))
- .expect("compile webfinger regex");
-}