From a3bd81297bc93621acbd91b166ac2542fa333c97 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Tue, 1 Aug 2023 22:13:13 +0900 Subject: [PATCH] fix(afterfact): fixed ScriptBlockText gets put inside ScriptBlockId field value #1145 --- src/afterfact.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index 45eeed5e2..e44d5d8c1 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -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 =