Closed bettiolo closed 11 years ago
I've written a simpler implementation for this. Really it's just appending the '/' for urls, so we only need to check for that. I've also just manually added your test cases. Thanks.
I found out that some tests were wrong, In some tests I was treating the authority as a resource, I have already fixed those tests on my branch
Created a pull request with this codebase to CDNJS: https://github.com/cdnjs/cdnjs/pull/1704
Added tests for the path component RFC3986 section 3.3 that allows empty path.
Details: http://tools.ietf.org/html/rfc3986#section-3.3