From 99a0a4e4269a667cc3013e49e5cf926b5f63ead8 Mon Sep 17 00:00:00 2001 From: Rob Crawford Date: Tue, 29 Oct 2013 18:11:27 +0000 Subject: [PATCH 1/2] Fix bug in Opera version regex --- bowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bowser.js b/bowser.js index c19137c..ec0931b 100644 --- a/bowser.js +++ b/bowser.js @@ -50,7 +50,7 @@ } if (opera) return { opera: t - , version: ua.match(webkitVersion) ? ua.match(webkitVersion)[1] : ua.match(/opr\/(\d+(\.\d+)?)/i) + , version: ua.match(webkitVersion) ? ua.match(webkitVersion)[1] : ua.match(/opr\/(\d+(\.\d+)?)/i)[1] } if (chrome) return { webkit: t From 37a2e4834ae259b4d5b3a8912ace4e5cbed6bb66 Mon Sep 17 00:00:00 2001 From: Rob Crawford Date: Tue, 29 Oct 2013 23:04:59 +0000 Subject: [PATCH 2/2] Fix bug in Opera version regex --- src/bowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bowser.js b/src/bowser.js index 35c1d5c..f1cacb0 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -44,7 +44,7 @@ } if (opera) return { opera: t - , version: ua.match(webkitVersion) ? ua.match(webkitVersion)[1] : ua.match(/opr\/(\d+(\.\d+)?)/i) + , version: ua.match(webkitVersion) ? ua.match(webkitVersion)[1] : ua.match(/opr\/(\d+(\.\d+)?)/i)[1] } if (chrome) return { webkit: t