From 99a0a4e4269a667cc3013e49e5cf926b5f63ead8 Mon Sep 17 00:00:00 2001 From: Rob Crawford Date: Tue, 29 Oct 2013 18:11:27 +0000 Subject: [PATCH] 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