Annotation For src/utils.rs
Logged in as anonymous

Origin for each line in src/utils.rs from check-in f5ed284f8c:

f5ed284f8c 2025-06-21        arcade: use crate::Cursor;
f5ed284f8c 2025-06-21        arcade: 
f5ed284f8c 2025-06-21        arcade: use lazy_static::lazy_static;
f5ed284f8c 2025-06-21        arcade: use regex::Regex;
f5ed284f8c 2025-06-21        arcade: 
f5ed284f8c 2025-06-21        arcade: lazy_static! {
f5ed284f8c 2025-06-21        arcade: 	pub static ref RE_SPECIAL: Regex = Regex::new(r"([\-_*\[\]()~`>#+|{}\.!])").unwrap();
f5ed284f8c 2025-06-21        arcade: 	pub static ref RE_DOMAIN: Regex = Regex::new(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$").unwrap();
f5ed284f8c 2025-06-21        arcade: }
f5ed284f8c 2025-06-21        arcade: 
f5ed284f8c 2025-06-21        arcade: /// `Attachment` object to store number attachment data and corresponding file name
f5ed284f8c 2025-06-21        arcade: #[derive(Debug)]
f5ed284f8c 2025-06-21        arcade: pub struct Attachment {
f5ed284f8c 2025-06-21        arcade: 	pub data: Cursor<Vec<u8>>,
f5ed284f8c 2025-06-21        arcade: 	pub name: String,
f5ed284f8c 2025-06-21        arcade: }