diff --git a/Parser/Client/Browser.php b/Parser/Client/Browser.php index 38bb5ea21a..548b508c69 100644 --- a/Parser/Client/Browser.php +++ b/Parser/Client/Browser.php @@ -457,6 +457,7 @@ class Browser extends AbstractClientParser 'TG' => 'ToGate', 'TS' => 'TweakStyle', 'TV' => 'TV Bro', + 'U0' => 'U Browser', 'UB' => 'UBrowser', 'UC' => 'UC Browser', 'UH' => 'UC Browser HD', @@ -529,7 +530,7 @@ class Browser extends AbstractClientParser '2S', 'RF', 'LR', 'SQ', 'BV', 'L1', 'F0', 'KS', 'V0', 'C8', 'AZ', 'MM', 'BT', 'N0', 'P0', 'F3', 'VS', 'DU', 'D0', 'P1', 'O4', '8S', 'H3', 'TE', 'WB', 'K1', 'P2', - 'XO', + 'XO', 'U0', ], 'Firefox' => [ 'AX', 'BI', 'BF', 'BH', 'BN', 'C0', 'CU', 'EI', 'F1', @@ -564,7 +565,7 @@ class Browser extends AbstractClientParser 'YO', 'PK', 'MR', 'AP', 'AK', 'UI', 'SD', 'VN', '4S', 'RF', 'LR', 'SQ', 'BV', 'L1', 'F0', 'KS', 'V0', 'C8', 'AZ', 'MM', 'BT', 'N0', 'P0', 'F3', 'DU', 'D0', 'P1', - 'O4', 'XO', + 'O4', 'XO', 'U0', ]; /** diff --git a/Tests/Parser/Client/fixtures/browser.yml b/Tests/Parser/Client/fixtures/browser.yml index 05555af372..1f5f91202e 100644 --- a/Tests/Parser/Client/fixtures/browser.yml +++ b/Tests/Parser/Client/fixtures/browser.yml @@ -6119,3 +6119,14 @@ family: Chrome headers: http-x-requested-with: com.xooloo.internet +- + user_agent: Mozilla/5.0 (Linux; Android 12; vivo 1907 Build/SP1A.210812.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/102.0.5005.125 Mobile Safari/537.36U Browser1.1 + client: + type: browser + name: U Browser + version: "1.1" + engine: Blink + engine_version: 102.0.5005.125 + family: Chrome + headers: + http-x-requested-with: com.u_browser diff --git a/regexes/client/browsers.yml b/regexes/client/browsers.yml index f757988f9e..a500f44f8a 100644 --- a/regexes/client/browsers.yml +++ b/regexes/client/browsers.yml @@ -5,6 +5,13 @@ # @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later ############### +# U Browser (https://play.google.com/store/apps/details?id=com.u_browser) +- regex: '(.*)U Browser(\d+\.[\.\d]+)' + name: 'U Browser' + version: '$2' + engine: + default: 'Blink' + # Tesla Browser (https://www.teslabrowser.com/) - regex: 'Chrome/(\d+\.[\.\d]+).+TeslaBrowser/' name: 'Tesla Browser' diff --git a/regexes/client/hints/browsers.yml b/regexes/client/hints/browsers.yml index 36cef14cea..30dec79388 100644 --- a/regexes/client/hints/browsers.yml +++ b/regexes/client/hints/browsers.yml @@ -117,3 +117,4 @@ 'com.appssppa.idesktoppcbrowser': 'iDesktop PC Browser' 'pi.browser': 'Pi Browser' 'com.xooloo.internet': 'Xooloo Internet' +'com.u_browser': 'U Browser'