Skip to content

Commit

Permalink
fix(afterfact): fixed key extract condition to exclude string include…
Browse files Browse the repository at this point in the history
…d newline character from key #1145
  • Loading branch information
hitenkoku committed Aug 3, 2023
1 parent 73579cd commit 8f7d913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ pub fn output_json_str(
let first_character =
char::from_str(&sp.chars().next().unwrap_or('-').to_string())
.unwrap_or_default();
if !sp.contains(['\\', '"', '\r', '\n'])
if !sp.contains(['\\', '"', '🛂'])
&& first_character.is_uppercase()
&& !sp.starts_with(['-', '/'])
&& sp.ends_with(':')
Expand Down

0 comments on commit 8f7d913

Please sign in to comment.