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

compile([]) returns "/" #4

Closed
geraintluff opened this issue Oct 24, 2013 · 1 comment
Closed

compile([]) returns "/" #4

geraintluff opened this issue Oct 24, 2013 · 1 comment

Comments

@geraintluff
Copy link

I believe it should return the empty string instead.

parse() behaves correctly:

var jsonPointer = require('json-pointer');
jsonPointer.parse('');  // []
jsonPointer.parse('/'); // ['']

But they don't match up:

jsonPointer.compile(jsonPointer.parse('')) !== '';
@manuelstofer
Copy link
Owner

Sorry it took so long. #parse should be fixed now

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