1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix bug in Opera version regex

This commit is contained in:
Rob Crawford 2013-10-29 18:11:27 +00:00
parent 20826d1ea5
commit 99a0a4e426

View File

@ -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