Skip to content

Negative sign in AQF mode is indistinguishable from , #686

@AbdulrhmnGhanem

Description

@AbdulrhmnGhanem
const x = { text: '-1' };
const xStringified = JsonURL.stringify(x, { AQF: true });
const parsed = JsonURL.parse(xStringified, { AQF: true });
console.assert(parsed['text'] == x['text'], 'parsed should be equal to x');

"-1" gets encoded as (!-1) and it gets parsed as ",1".

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions