-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fix _removeDotSegments. #193
Conversation
Fix _removeDotSegments logic to pass all the json-ld.org RFC3986 tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passes tests... LGTM
Will likely hold off on merging this and work on a fix that also handles the current tests that don't remove dot segments from base URIs. It's also been noted this perhaps should be a minor bump since the outputs could change if these edge case URIs were used as input, even though it's due to a buggy implementation. |
Fixes various RFC3986 tests with dot segments in the base path.
After code updates the hasAuthority paramter is no longer used.
@dlongley Please re-review. Thanks. |
Note, this now passes all RFC3986 tests as is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM if it's passing tests. Still a breaking change.
Note: also needs to be ported to 0.5.x if not already. |
Fixed via other commits and released in 0.5.17. |
Fix _removeDotSegments logic to pass all the json-ld.org RFC3986 tests.
Oddly this doesn't require the use of the hasAuthority parameter. Is this just luck with the current json-ld.org test cases or is there an edge case where this would fail?
This patch requires json-ld/json-ld.org#525 to fully pass the tests.