diff options
-rw-r--r-- | plugins/DevicesDetection/UserAgentParserEnhanced/regexes/browsers.yml | 4 | ||||
-rw-r--r-- | tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml | 36 |
2 files changed, 36 insertions, 4 deletions
diff --git a/plugins/DevicesDetection/UserAgentParserEnhanced/regexes/browsers.yml b/plugins/DevicesDetection/UserAgentParserEnhanced/regexes/browsers.yml index cede074079..3000e9bdbf 100644 --- a/plugins/DevicesDetection/UserAgentParserEnhanced/regexes/browsers.yml +++ b/plugins/DevicesDetection/UserAgentParserEnhanced/regexes/browsers.yml @@ -57,13 +57,13 @@ version: '$1' #Opera -- regex: '(?:Opera Tablet.*Version|Opera/.+Opera Mobi.+Version|Safari.*OPR)/(\d+\.\d+)' +- regex: '(?:Opera Tablet.*Version|Opera/.+Opera Mobi.+Version|Mobile.+OPR)/(\d+\.\d+)' name: Opera Mobile version: '$1' - regex: 'Opera Mini/(?:att/)?(\d+\.\d+)' name: Opera Mini version: '$1' -- regex: 'Opera[/ ](?:9.80.*Version/)?(\d+\.\d+)' +- regex: '(?:Opera|OPR)[/ ](?:9.80.*Version/)?(\d+\.\d+)' name: Opera version: '$1' diff --git a/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml b/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml index 272d222b7c..610e42d00e 100644 --- a/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml +++ b/tests/PHPUnit/Fixtures/userAgentParserEnhancedFixtures.yml @@ -85,8 +85,8 @@ short_name: WI8 version: 8 browser: - name: Opera Mobile - short_name: OM + name: Opera + short_name: OP version: 15.0 device: type: desktop @@ -11486,3 +11486,35 @@ model: PlayStation 4 os_family: Mobile Gaming Console browser_family: NetFront +- + user_agent: Mozilla/5.0 (Linux; Android 4.0.3; HTC EVO 3D X515m Build/IML74K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Mobile Safari/537.36 OPR/15.0.1162.61541 + os: + name: Android + short_name: AND + version: 4.0 + browser: + name: Opera Mobile + short_name: OM + version: 15.0 + device: + type: smartphone + brand: HT + model: EVO 3D + os_family: Android + browser_family: Opera +- + user_agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36 OPR/18.0.1284.68 + os: + name: Windows 8 + short_name: WI8 + version: 8 + browser: + name: Opera + short_name: OP + version: 18.0 + device: + type: desktop + brand: + model: + os_family: Windows + browser_family: Opera |