Expected behavior
The grammar for format strings should include some kind of an escape sequence so that if a user did want to use the string 'YYYY' in their output they could. Once that has been decided, formatString should then escape any Placeholders that contain a reserved string.
Describe the bug The
Placeholder
FormatterCommand
doesn't escape when it's string is set to that of a differentFormatCommand
.To Reproduce
Then if we attempt to parse it back again:
Expected behavior The grammar for format strings should include some kind of an escape sequence so that if a user did want to use the string 'YYYY' in their output they could. Once that has been decided,
formatString
should then escape anyPlaceholder
s that contain a reserved string.