Hash sign inside string value that includes quotes interpreted as comment #426
Labels
component: decoder
Related to parsing in `toml.load`
syntax: comments
Related to comments
syntax: strings
Related to string literals
type: bug
A confirmed bug or unintended behavior
When a string value is contains parts enclosed in quotes (e.g.: a XML tag with attributes), if the quoted part contains a '#', it can be considered as a comment. since the rest of the line is ignored, including other quotes, the value may be incomplete in multi line strings. if all is on one line the whole decoding may fail.
output:
The case that let me discover this was storing a svg fragment:
output:
The text was updated successfully, but these errors were encountered: