mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
fix: escape backslash
This commit is contained in:
@@ -403,11 +403,11 @@ TOML11_INLINE sequence escaped(const spec& s)
|
|||||||
const auto escape_char = [&s] {
|
const auto escape_char = [&s] {
|
||||||
if(s.v1_1_0_add_escape_sequence_e)
|
if(s.v1_1_0_add_escape_sequence_e)
|
||||||
{
|
{
|
||||||
return character_either("\"\'bfnrte");
|
return character_either("\"\\bfnrte");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return character_either("\"\'bfnrt");
|
return character_either("\"\\bfnrt");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user