Skip to content

Commit

Permalink
fix(afterfact): fixed comma separate field data processing in json-ti…
Browse files Browse the repository at this point in the history
…meline #1145
  • Loading branch information
hitenkoku committed Jul 29, 2023
1 parent 72bc568 commit 77ee339
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,13 @@ pub fn output_json_str(
key_index_stock[key_idx].as_str()
};
if !output_value_stock.is_empty() {
output_value_stock.push_str(" | ");
let separate_chr =
if key_index_stock[key_idx].starts_with("ScriptBlock") {
" | "
} else {
": "
};
output_value_stock.push_str(separate_chr);
}
output_value_stock.push_str(&value.join(" "));
//1つまえのキーの段階で以降にvalueの配列で区切りとなる空の配列が存在しているかを確認する
Expand Down

0 comments on commit 77ee339

Please sign in to comment.