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

The parsing of the path doesn't reflect the spec #19

Closed
bettiolo opened this issue Aug 8, 2013 · 2 comments
Closed

The parsing of the path doesn't reflect the spec #19

bettiolo opened this issue Aug 8, 2013 · 2 comments

Comments

@bettiolo
Copy link
Contributor

bettiolo commented Aug 8, 2013

In the documentation the following statement:
url('path', 'http://www.example.com:8080/some/path');
should return
/some/path

the result I get from version 1.8.0 is:
/some/path/

Please, can you make the behaviour the same as the documentation? The ending / should not be added.

Library from: http://cdnjs.cloudflare.com/ajax/libs/js-url/1.8.0/js-url.min.js

@websanova
Copy link
Owner

Okay, updated this to just return the original path without adding the extra /. Note that if you do path(1) or path(-1) it will still act as if /some/path or /some/path/ is in the form /some/path/.

@bettiolo
Copy link
Contributor Author

bettiolo commented Aug 8, 2013

Thank you very much

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