rule.rsを分割する (#121)
* Refact: split code for matcher from rule.rs * Reafact: combine multiple declared functions * Refact: split code for SelectionNode from rule.rs * Refact: mv test code for SelectionNode from rule.rs * Refact: mv condition's code from rule.rs * Refact: mv aggregation's code from condition_parser.rs * Refact: use relationships * cargo fmt --all * remove unnecessary matcher Co-authored-by: HajimeTakai <takai.wa.hajime@gmail.com>
This commit is contained in:
@@ -14,6 +14,15 @@ use std::io::prelude::*;
|
||||
use std::str;
|
||||
use std::string::String;
|
||||
|
||||
pub fn concat_selection_key(key_list: &Vec<String>) -> String {
|
||||
return key_list
|
||||
.iter()
|
||||
.fold("detection -> selection".to_string(), |mut acc, cur| {
|
||||
acc = acc + " -> " + cur;
|
||||
return acc;
|
||||
});
|
||||
}
|
||||
|
||||
pub fn check_regex(
|
||||
string: &str,
|
||||
r#type: usize,
|
||||
|
||||
Reference in New Issue
Block a user