From db88bd2f22bba0aaf197b06c6a7d3a30341c0d19 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Sun, 16 Mar 2014 00:39:42 +0000 Subject: [PATCH] Fixed the IE11 version check (fixes #579) --- README.md | 2 +- src/system/Device.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d9c9582fd..86232f36a 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Bug Fixes * The Static, Kinematic and Dynamic consts that P2.Body uses were incorrect (fixes #563) * Sprite.destroy would fail if it had an Arcade Physics body, now added. * Group.getAt comparison updated (fixes #578) - +* Fixed the IE11 version check (fixes #579) Version 2.0.0 - "Aes Sedai" - March 13th 2014 diff --git a/src/system/Device.js b/src/system/Device.js index 15e500a27..44922cc84 100644 --- a/src/system/Device.js +++ b/src/system/Device.js @@ -579,12 +579,12 @@ Phaser.Device.prototype = { { this.silk = true; } - else if (/Trident\/(\d+\.\d+); rv:(\d+\.\d+)/.test(ua)) + else if (/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(ua)) { this.ie = true; this.trident = true; this.tridentVersion = parseInt(RegExp.$1, 10); - this.ieVersion = parseInt(RegExp.$2, 10); + this.ieVersion = parseInt(RegExp.$3, 10); } // WebApp mode in iOS