Skip to content

Commit

Permalink
fix: rule parse error when config/expand does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Dec 26, 2024
1 parent daf0629 commit f428350
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/detections/rule/matchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ pub enum PipeElement {
ReMultiLine,
ReSingleLine,
Wildcard,
Expand,
Exists(String, String),
EqualsField(String),
Endswithfield(String),
Expand Down Expand Up @@ -607,6 +608,7 @@ impl PipeElement {
"remultiline" => Some(PipeElement::ReMultiLine),
"equalsfield" => Some(PipeElement::EqualsField(pattern.to_string())),
"endswithfield" => Some(PipeElement::Endswithfield(pattern.to_string())),
"expand" => Some(PipeElement::Expand),
"fieldref" => Some(PipeElement::FieldRef(pattern.to_string())),
"fieldrefstartswith" => Some(PipeElement::FieldRefStartswith(pattern.to_string())),
"fieldrefendswith" => Some(PipeElement::FieldRefEndswith(pattern.to_string())),
Expand Down

0 comments on commit f428350

Please sign in to comment.