Skip to content

Commit

Permalink
fix(afterfact): fixed wrong separate in ScriptBlockText field #1145
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Aug 2, 2023
1 parent a3bd812 commit 3b4146f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b4146f

Please sign in to comment.