Skip to content

Commit

Permalink
fix(utils): fixed an issue that was decreasing the number of some det…
Browse files Browse the repository at this point in the history
…ections. #1186
  • Loading branch information
hitenkoku committed Oct 17, 2023
1 parent cc9eeee commit 372f8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detections/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub fn value_to_string(value: &Value) -> Option<String> {
Value::Null => Option::None,
Value::Bool(b) => Option::Some(b.to_string()),
Value::Number(n) => Option::Some(n.to_string()),
Value::String(s) => Option::Some(s.to_string()),
Value::String(s) => Option::Some(s.trim().to_string()),
Value::Array(_) => Option::None,
Value::Object(_) => Option::None,
}
Expand Down

0 comments on commit 372f8db

Please sign in to comment.