Skip to content

Commit

Permalink
fix(afterfact): fixed wrong field name separate processing #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Jul 29, 2023
1 parent 5fc2c4a commit 72bc568
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,11 @@ pub fn output_json_str(
let mut tmp_stock = vec![];
let mut space_split_contents = detail_contents.split(' ');
while let Some(sp) = space_split_contents.next() {
if !sp.contains('\\') && sp.ends_with(':') && sp.len() > 2 {
if !sp.contains('\\')
&& !sp.starts_with('-')
&& sp.ends_with(':')
&& sp.len() > 2
{
key_index_stock.push(sp.replace(':', ""));
if sp == "Payload:" {
stocked_value.push(vec![]);
Expand Down

0 comments on commit 72bc568

Please sign in to comment.