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

Supported the deceptive Internet Explorer 12 #47

Merged
merged 3 commits into from
Nov 17, 2014
Merged

Conversation

phistuck
Copy link
Contributor

Internet Explorer 12 disguises as Chrome 36, but adds a new Edge/x.x token.
https://gist.github.com/jacobrossi/c9699b27df2f4e97c0bd

Sneaky.

Internet Explorer 12 disguises as Chrome 36, but adds a new Edge/x.x token.
https://gist.github.com/jacobrossi/c9699b27df2f4e97c0bd

Sneaky.
@le717
Copy link
Contributor

le717 commented Nov 16, 2014

Will review this ASAP.

@le717 le717 self-assigned this Nov 16, 2014
@le717
Copy link
Contributor

le717 commented Nov 17, 2014

So far changes look good, will make a comment later, but can you add a new test for this UA please?

Also, you do know that technically all browsers are deceptive, right? :P

@phistuck
Copy link
Contributor Author

I will add a test.

Yeah, of course, but some are much more deceptive than others. This one is the most deceptive I know.

A simple copy and paste of the Internet Explorer 11 test and a few digit change.
@phistuck
Copy link
Contributor Author

Done.

@@ -31,7 +31,8 @@
jQuery.uaMatch = function( ua ) {
ua = ua.toLowerCase();

var match = /(opr)[\/]([\w.]+)/.exec( ua ) ||
var match = /(edge)\/([\w.]+)/.exec( ua ) ||
/(opr)[\/]([\w.]+)/.exec( ua ) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: can you line this line up with the Chrome line below it please?

@le717
Copy link
Contributor

le717 commented Nov 17, 2014

Everything looks good, just that one nit there and this can be merged.

There were only whitespace characters, while the rest of the lines use a weird combination of tabs and spaces, but general consistency within a file comes first.
@phistuck
Copy link
Contributor Author

Whitespace characters and a tab character within the same line? Wow. This looks so wrong.
Anyway, fixed.

@le717
Copy link
Contributor

le717 commented Nov 17, 2014

I honestly thought I fixed that already, but I guess not. I will right after I merge this.

Thanks for the contribution!

le717 pushed a commit that referenced this pull request Nov 17, 2014
Support Internet Explorer 12
@le717 le717 merged commit 0604c6c into gabceb:master Nov 17, 2014
@phistuck
Copy link
Contributor Author

Glad to help. :)

@le717
Copy link
Contributor

le717 commented Nov 17, 2014

And for the record, I agree, IE 12 is very deceptive with this update.

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

2 participants