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
20826d1ea5
commit
99a0a4e426
@ -50,7 +50,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