JSON.minify icon indicating copy to clipboard operation
JSON.minify copied to clipboard

Whitespaces and tabs after last quote and newline are not stripped

Open Virtual-X opened this issue 2 years ago • 0 comments

This is an example that fails (neither the tab not the last space are stripped):

source: "{"foo": "bar"\t} ", assert: "{"foo":"bar"}"

All tests in the suite end with \n, thus avoiding the problem, but I suppose that json without newlines are also intended to be supported?

I have tested javascript only, I don't know how other ports are behaving in this situation.

Virtual-X avatar May 12 '22 09:05 Virtual-X