parent
e94218d8f5
commit
81213f7927
2 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,10 @@
|
|||
|
||||
== [Unreleased]
|
||||
|
||||
== Fixed
|
||||
|
||||
- fix serializing strings containing `:`
|
||||
|
||||
== [v0.2.4] - 2023-03-01
|
||||
|
||||
== Fixed
|
||||
|
|
|
@ -123,7 +123,7 @@ impl<'a> serde::ser::Serializer for &'a mut Serializer {
|
|||
self.ensure_top_level_struct()?;
|
||||
|
||||
let needs_quotes =
|
||||
v.is_empty() || v.contains([' ', '\n', '\r', '\t', '=', '\'', '"', '\\', '/']);
|
||||
v.is_empty() || v.contains([' ', '\n', '\r', '\t', '=', '\'', '"', '\\', ':']);
|
||||
|
||||
if needs_quotes {
|
||||
self.output += "\"";
|
||||
|
|
Loading…
Add table
Reference in a new issue