Merge pull request #1494 from ether/feature/browserTests

Windows and Mobile tests should be case insensitive
pull/1487/merge
John McLear 2013-02-10 15:17:19 -08:00
commit 29e2df7ad4
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@
} }
//custom extensions, the original jquery didn't have these //custom extensions, the original jquery didn't have these
browser.windows = /windows/.test(userAgent); browser.windows = /windows/i.test(userAgent);
browser.mobile = /mobile/.test(userAgent) || /android/.test(userAgent); browser.mobile = /mobile/i.test(userAgent) || /android/i.test(userAgent);
if(typeof exports !== 'undefined'){ if(typeof exports !== 'undefined'){
exports.browser = browser; exports.browser = browser;