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

:val cannot match boolean #73

Open
AndrewIsh opened this issue Jan 12, 2016 · 0 comments
Open

:val cannot match boolean #73

AndrewIsh opened this issue Jan 12, 2016 · 0 comments

Comments

@AndrewIsh
Copy link

As mentioned here, it is not possible to do the following:

.preferred:val(true)

The following error results:

Error: string expected in '.global:val(true)'
    at te (http://213.138.111.239:3000/bower_components/jsonselect/src/jsonselect.js:44:13)
    at parse_selector (http://213.138.111.239:3000/bower_components/jsonselect/src/jsonselect.js:350:50)
    at parse (http://213.138.111.239:3000/bower_components/jsonselect/src/jsonselect.js:225:21)
    at compile (http://213.138.111.239:3000/bower_components/jsonselect/src/jsonselect.js:503:18)
    at Object.exports.match (http://213.138.111.239:3000/bower_components/jsonselect/src/jsonselect.js:516:16)

@samcheung closed his issue with a workaround, but I think it would be nice to see support for boolean matching to be supported.

If this is considered by others to be a desirable requirement, I'm happy to take a look at creating a PR.

Cheers
Andrew

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

1 participant