diff --git a/src/detections/configs.rs b/src/detections/configs.rs index d7651058b..5e5062fad 100644 --- a/src/detections/configs.rs +++ b/src/detections/configs.rs @@ -2722,6 +2722,12 @@ fn create_control_chat_replace_map() -> HashMap { } pub fn load_windash_characters(file_path: &str) -> Vec { + if let Some(contents) = ONE_CONFIG_MAP.get("windash_characters.txt") { + return contents + .lines() + .map(|line| line.chars().next().unwrap()) + .collect(); + } let mut characters = Vec::from(['-', '–', '—', '―']); let file = File::open(file_path); match file {