Permalink
Browse files

Fix IE regex literal to handle IE 10.

* Uses the regex recommended at https://blogs.msdn.com/b/ie/archive/2011/04/15/the-ie10-user-agent-string.aspx

Change-Id: If2f14f072623495f68f29e1dfa058dfb158863ac
  • Loading branch information...
1 parent 1b8bb32 commit 428a9e1b0caf98587cefc20c2454fb5864611720 @mattflaschen mattflaschen committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guiders.js
View
@@ -89,7 +89,7 @@ var guiders = (function($) {
guiders._windowHeight = 0;
// Basic IE browser detection
- var ieBrowserMatch = navigator.userAgent.match('MSIE (.)');
+ var ieBrowserMatch = navigator.userAgent.match(/MSIE\s([\d.]+)/);
guiders._isIE = ieBrowserMatch && ieBrowserMatch.length > 1;
guiders._ieVersion = ieBrowserMatch && ieBrowserMatch.length > 1 ? Number(ieBrowserMatch[1]) : -1;

0 comments on commit 428a9e1

Please sign in to comment.