mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge pull request #25 from robCrawford/patch-1
Fix bug in Opera version regex
This commit is contained in:
commit
17fbf34292
@ -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
|
||||
|
@ -44,7 +44,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
|
||||
|
Loading…
Reference in New Issue
Block a user