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

[CLOSED] UrlParams parses a URL without parameters incorrectly #5485

Open
core-ai-bot opened this issue Aug 30, 2021 · 3 comments
Open

[CLOSED] UrlParams parses a URL without parameters incorrectly #5485

core-ai-bot opened this issue Aug 30, 2021 · 3 comments

Comments

@core-ai-bot
Copy link
Member

Issue by lkcampbell
Friday Nov 15, 2013 at 15:33 GMT
Originally opened as adobe/brackets#6008


OS Version: Mac OSX Mavericks

Brackets Version: Sprint 33

Repro Steps:
Open Brackets source code, then open Dev Tools to Console and paste the following code snippet into the Console:

UrlParams = require("utils/UrlParams").UrlParams;
var params = new UrlParams();
params.parse("http://www.foobar.com");
params

Look at the value of params._store

Observed Result:
params._store is an object with one property: http://www.foobar.com: "undefined"

Expected Result:
There are no parameters in the URL so params._store should be an empty object.

Additional Notes:
UrlParams needs an isEmpty() method to test for this scenario.

@core-ai-bot
Copy link
Member Author

Comment by lkcampbell
Friday Nov 15, 2013 at 15:41 GMT


I am fixing this as part of a bigger fix for adobe/brackets#5078. In addition to fixing this bug and adding the isEmpty() method, I will also be adding a remove() method and a set of unit tests for UrlParams.

@core-ai-bot
Copy link
Member Author

Comment by gruehle
Monday Nov 18, 2013 at 19:18 GMT


Reviewed. Low priority to@lkcampbell

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Monday Dec 23, 2013 at 16:59 GMT


Thanks. Closing.

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

1 participant