We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
正規表現をキャッシュすれば、早くなる
condition_parser.rs ConditionCompiler::new()
regex_patterns.push(Regex::new(r"^\(").unwrap()); regex_patterns.push(Regex::new(r"^\)").unwrap()); regex_patterns.push(Regex::new(r"^ ").unwrap()); // ^\w+については、sigmaのソースのsigma/tools/sigma/parser/condition.pyのSigmaConditionTokenizerを参考にしている。 // 上記ソースの(SigmaConditionToken.TOKEN_ID, re.compile("[\\w*]+")),を参考。 regex_patterns.push(Regex::new(r"^\w+").unwrap());
condition_parser.rs ConditionCompiler.compile_condition()
let re_pipe = Regex::new(r"\|.*").unwrap();
aggregation_parser.rs AggegationConditionCompiler::new()
// ここで字句解析するときに使う正規表現の一覧を定義する。 // ここはSigmaのGithubレポジトリにある、toos/sigma/parser/condition.pyのSigmaConditionTokenizerのtokendefsを参考にしています。 let mut regex_patterns = vec![]; regex_patterns.push(Regex::new(r"^count\( *\w* *\)").unwrap()); // countの式 regex_patterns.push(Regex::new(r"^ ").unwrap()); regex_patterns.push(Regex::new(r"^by").unwrap()); regex_patterns.push(Regex::new(r"^==").unwrap()); regex_patterns.push(Regex::new(r"^<=").unwrap()); regex_patterns.push(Regex::new(r"^>=").unwrap()); regex_patterns.push(Regex::new(r"^<").unwrap()); regex_patterns.push(Regex::new(r"^>").unwrap()); regex_patterns.push(Regex::new(r"^\w+").unwrap());
aggregation_parser.rs AggegationConditionCompiler.compile_body()
The text was updated successfully, but these errors were encountered:
fixed cached aggregation parser regex #254
687cad9
fixed cached condition parser regex #254
6a78be7
fixed cached condition parser regex re_pipe #254
b7fd85a
Feature/improve rule file read time#254 (#260)
50daf1d
* fixed cached aggregation parser regex #254 * fixed cached condition parser regex #254 * fixed cached condition parser regex re_pipe #254
hitenkoku
Successfully merging a pull request may close this issue.
正規表現をキャッシュすれば、早くなる
condition_parser.rs ConditionCompiler::new()
condition_parser.rs ConditionCompiler.compile_condition()
aggregation_parser.rs AggegationConditionCompiler::new()
aggregation_parser.rs AggegationConditionCompiler.compile_body()
The text was updated successfully, but these errors were encountered: