use better placeholder string

macos-click-through
Christopher Gadzinski 3 years ago
parent 928d8283fe
commit 416ecd8094

@ -381,8 +381,8 @@ fn parse_map(map_value: Value) -> Result<Vec<(Value, Value)>> {
fn parse_string(string_value: Value) -> Result<String> { fn parse_string(string_value: Value) -> Result<String> {
match string_value { match string_value {
Value::String(s) => Ok(s.into_str().unwrap_or_else(|| String::from("?"))), Value::String(s) => Ok(s.into_str().unwrap_or_else(|| String::from("\u{FFFD}"))),
_ => Err(ParseError::String(string_value)) _ => Err(ParseError::String(string_value)),
} }
} }

Loading…
Cancel
Save