1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use once_cell::sync::Lazy;
use regex::Regex;

use crate::codex::modifier::constants::NEW_LINE;


pub static DOUBLE_NEW_LINE_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(&format!("{}{{2}}", NEW_LINE)).unwrap());


pub const SPACE_TAB_EQUIVALENCE: &str = r"   ";

pub static ESCAPE_HTML: Lazy<Vec<(Regex, String)>> = Lazy::new(|| vec![
    (Regex::new(r"<").unwrap(), "&lt;".to_string()),
    (Regex::new(r">").unwrap(), "&gt;".to_string()),
]);