Skip to content

Commit

Permalink
fix: overwritten author list
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Dec 19, 2024
1 parent d01e72a commit dbdd61e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,9 @@ fn calc_statistic_info(
let level_suffix = get_level_suffix(detect_info.level.as_str());
let author_list = extract_author_name(&detect_info.ruleauthor);
let author_str = author_list.iter().join(", ");
afterfact_info.detect_rule_authors.insert(
detect_info.ruleid.to_owned(),
author_str.to_string().into(),
);
afterfact_info
.detect_rule_authors
.insert(detect_info.ruleid.to_owned(), author_str.to_string().into());

if author_str != "-"
&& !afterfact_info
Expand Down

0 comments on commit dbdd61e

Please sign in to comment.