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 23:04:59 +00:00
parent 99a0a4e426
commit 37a2e4834a

View File

@ -44,7 +44,7 @@
} }
if (opera) return { if (opera) return {
opera: t 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 { if (chrome) return {
webkit: t webkit: t