From 72bc5689122eb3d4aa03e3718424fa07c63cd790 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Sat, 29 Jul 2023 13:04:05 +0900 Subject: [PATCH] fix(afterfact): fixed wrong field name separate processing #1145 --- src/afterfact.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index 8d52fff0e..d695ba0b7 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -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![]);