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

Handle incorrect hash/search values in IE6. #3152

Merged
merged 2 commits into from Aug 18, 2014
Merged

Handle incorrect hash/search values in IE6. #3152

merged 2 commits into from Aug 18, 2014

Conversation

braddunbar
Copy link
Collaborator

In IE6, the hash/search value will not be correct when the hash
fragment contains '?'.

Thanks for pointing out the failure @jdalton!

In IE6, the hash/search value will not be correct when the hash
fragment contains '?'.
jdalton referenced this pull request in lodash/lodash May 16, 2014

getSearch: function() {
var match = this.location.href.replace(/#.*$/, '').match(/\?.+$/);
return match ? match[0] : '';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need the $ marker here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I think you're right, it's probably not necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in 5573ef7.

@akre54
Copy link
Collaborator

akre54 commented Aug 18, 2014

@braddunbar @jdalton is this good to merge?

@braddunbar
Copy link
Collaborator Author

Yep yep. 👍

braddunbar added a commit that referenced this pull request Aug 18, 2014
Handle incorrect hash/search values in IE6.
@braddunbar braddunbar merged commit 1dbe3dd into jashkenas:master Aug 18, 2014
@braddunbar braddunbar deleted the ie6 branch August 18, 2014 20:53
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

Successfully merging this pull request may close these issues.

None yet

3 participants