From 3b4146fa4798987c8513b4064e191c30806edb43 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:15:23 +0900 Subject: [PATCH] fix(afterfact): fixed wrong separate in ScriptBlockText field #1145 --- src/afterfact.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index e44d5d8c1..c1c52e701 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -1478,9 +1478,14 @@ pub fn output_json_str( stocked_value.push(tmp_stock); tmp_stock = vec![]; } - } else if char::from_str(&sp.chars().next().unwrap_or('a').to_string()) - .unwrap_or_default() - .is_lowercase() + } else if (char::from_str( + &sp.chars().next().unwrap_or('a').to_string(), + ) + .unwrap_or_default() + .is_lowercase() + || char::from_str(&sp.chars().next().unwrap_or('a').to_string()) + .unwrap_or_default() + .is_numeric()) && sp.ends_with(';') && sp.len() < 5 && key_index_stock.len() > 1