Skip to content

Commit

Permalink
fix(afterfact): fixed ScriptBlockText gets put inside ScriptBlockId f…
Browse files Browse the repository at this point in the history
…ield value #1145
  • Loading branch information
hitenkoku committed Aug 1, 2023
1 parent 4b5a6c4 commit a3bd812
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,12 @@ pub fn output_json_str(
stocked_value.push(tmp_stock);
tmp_stock = vec![];
}
} else if sp.ends_with(';') && sp.len() < 5 && key_index_stock.len() > 1
} else if char::from_str(&sp.chars().next().unwrap_or('a').to_string())
.unwrap_or_default()
.is_lowercase()
&& sp.ends_with(';')
&& sp.len() < 5
&& key_index_stock.len() > 1
{
let last_key = key_index_stock.pop().unwrap_or_default();
let mut last_stocked_value =
Expand Down

0 comments on commit a3bd812

Please sign in to comment.