Skip to content

Commit

Permalink
fix(afterfact): reverted json field name extract length condition and…
Browse files Browse the repository at this point in the history
… added exclude key condition #1145
  • Loading branch information
hitenkoku committed Aug 3, 2023
1 parent b02cfac commit 593af2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,11 +1465,11 @@ pub fn output_json_str(
let first_character =
char::from_str(&sp.chars().next().unwrap_or('-').to_string())
.unwrap_or_default();
if !sp.contains('\\')
if !sp.contains(['\\', '"'])
&& first_character.is_uppercase()
&& !sp.starts_with(['-', '/'])
&& sp.ends_with(':')
&& sp.len() > 6
&& sp.len() > 2
{
key_index_stock.push(sp.replace(':', ""));
if sp == "Payload:" {
Expand Down

0 comments on commit 593af2d

Please sign in to comment.