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:
parent
99a0a4e426
commit
37a2e4834a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user