Skip to content

Commit

Permalink
OperaMini detection improvements (#7495)
Browse files Browse the repository at this point in the history
ref #7484
  • Loading branch information
sanchezzzhak committed Nov 7, 2023
1 parent f8b928d commit 999a7ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7612,3 +7612,12 @@
engine: Blink
engine_version: 105.0.5195.68
family: Chrome
-
user_agent: Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (S60; SymbOS; Opera Mobi/23.348; U; en) Presto/2.5.25 Version/10.54
client:
type: browser
name: Opera Mini
version: "9.80"
engine: Presto
engine_version: 2.5.25
family: Opera
4 changes: 2 additions & 2 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@
default: 'WebKit'

#Opera
- regex: '(?:Opera Tablet.*Version|Opera/.+Opera Mobi.+Version|Mobile.+OPR)/(\d+[\.\d]+)'
- regex: '(?:Opera Tablet.*Version|Opera/.+(?<!SymbOS; )Opera Mobi.+Version|Mobile.+OPR)/(\d+[\.\d]+)'
name: 'Opera Mobile'
version: '$1'
engine:
Expand Down Expand Up @@ -1616,7 +1616,7 @@
version: '$1'
engine:
default: 'Blink'
- regex: 'Opera/(\d+\.[\.\d]+) .*Opera Mobi'
- regex: 'Opera/(\d+\.[\.\d]+) .*(?<!SymbOS; )Opera Mobi'
name: 'Opera Mobile'
version: '$1'
engine:
Expand Down

0 comments on commit 999a7ef

Please sign in to comment.