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

deparam.querystring() returns abnormal results for URLs without a query string #34

Open
acdha opened this issue Oct 11, 2011 · 1 comment

Comments

@acdha
Copy link

acdha commented Oct 11, 2011

Normally $.deparam.querystring() will return an object containing only the query string values. If called on a URL which does not contain ? it will return an object containing the URL itself, e.g.

$.deparam.querystring("http://google.com/")
Object
    http://google.com/: ""
    __proto__: Object

This means that anyone intending to pass the result back into a function like $.param.querystring has to remember to include a check for this condition if the URL lacks a querystring altogether

@cowboy
Copy link
Owner

cowboy commented Oct 11, 2011

Good point, thanks. I'll look into fixing this.

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