Skip to content

Commit

Permalink
fix: escape backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Feb 4, 2025
1 parent 63e4e6f commit 4fc4d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/toml11/impl/syntax_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,11 @@ TOML11_INLINE sequence escaped(const spec& s)
const auto escape_char = [&s] {
if(s.v1_1_0_add_escape_sequence_e)
{
return character_either("\"\'bfnrte");
return character_either("\"\\bfnrte");
}
else
{
return character_either("\"\'bfnrt");
return character_either("\"\\bfnrt");
}
};

Expand Down

0 comments on commit 4fc4d7f

Please sign in to comment.