sw4rm_rs_generation/constants.rs
1use lazy_static::lazy_static;
2use regex::Regex;
3
4lazy_static! {
5 pub static ref HAS_NUMBER_REGEX: Regex = Regex::new(
6 r"\d+",
7 ).unwrap();
8 pub static ref NUMBER_REGEX: Regex = Regex::new(
9 r"^(?<number>\d+)",
10 ).unwrap();
11 pub static ref TYPE_REGEX: Regex = Regex::new(
12 r"^(?<item_type>type)$",
13 ).unwrap();
14 pub static ref MATCH_REGEX: Regex = Regex::new(
15 r"^(?<item_match>match)$",
16 ).unwrap();
17}