Skip to content

Commit

Permalink
fix: rules_config_files.txt's case
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Nov 2, 2024
1 parent 79b9ad9 commit 33bce86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/detections/configs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2722,6 +2722,12 @@ fn create_control_chat_replace_map() -> HashMap<char, CompactString> {
}

pub fn load_windash_characters(file_path: &str) -> Vec<char> {
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 {
Expand Down

0 comments on commit 33bce86

Please sign in to comment.