Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing skips object members in some cases #5

Open
vpzomtrrfrt opened this issue Nov 11, 2019 · 1 comment
Open

Parsing skips object members in some cases #5

vpzomtrrfrt opened this issue Nov 11, 2019 · 1 comment

Comments

@vpzomtrrfrt
Copy link
Member

> const DSON = require("./build/DSON.js");
undefined
> DSON.parse('such "foo" is 1, "bar" is "baz" wow')
{ foo: 'baz' }
> DSON.parse('such "foo" is 1, "bar" is "baz", "bat" is "quz" wow')
{ foo: 'baz', bat: 'quz' }
>

Seems to be related to number parsing?

@AnEmortalKid
Copy link
Member

I don’t think I’ve ever looked at this parser code, but your conjecture seems right like it’s skipping the number and going to the next block. What if you have “foo” is “1”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants