Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds detection for Lolifox browser #6670

Merged
merged 5 commits into from Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Expand Up @@ -181,6 +181,7 @@ class Browser extends AbstractClientParser
'LG' => 'LG Browser',
'LH' => 'Light',
'LI' => 'Links',
'IF' => 'Lolifox',
'LO' => 'Lovense Browser',
'LU' => 'LuaKit',
'LL' => 'Lulumi',
Expand Down Expand Up @@ -374,7 +375,7 @@ class Browser extends AbstractClientParser
'FF', 'FE', 'FM', 'SX', 'FB', 'PX', 'MB', 'EI', 'WF',
'CU', 'TF', 'QM', 'FR', 'I4', 'GZ', 'MO', 'F1', 'BI',
'MN', 'BH', 'TO', 'OS', 'MY', 'FY', 'AX', 'C0', 'LH',
'S5', 'ZV', 'IW', 'PI', 'BN', 'OA', 'LY',
'S5', 'ZV', 'IW', 'PI', 'BN', 'OA', 'LY', 'IF',
],
'Internet Explorer' => ['IE', 'IM', 'PS', 'CZ', 'BZ'],
'Konqueror' => ['KO'],
Expand Down
8 changes: 8 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Expand Up @@ -3135,6 +3135,14 @@
version: 1.8.4
engine: Blink
engine_version: ""
-
user_agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.9) Gecko/20100101 Goanna/4.6 Firefox/68.9 Lolifox/28.12.0
client:
type: browser
name: Lolifox
version: 28.12.0
engine: Goanna
engine_version: "4.6"
-
user_agent: Mozilla/5.0 (Linux; Android 10; AC2001) AppleWebKit/537.36 (KHTML, like Gecko) JioPages/2.0 Chrome/83.0.4103.96 Mobile Safari/537.36
client:
Expand Down
5 changes: 5 additions & 0 deletions regexes/client/browsers.yml
Expand Up @@ -5,6 +5,11 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

# Lolifox
- regex: 'Lolifox/(\d+[\.\d]+)'
name: 'Lolifox'
version: '$1'

# Qutebrowser (https://qutebrowser.org/)
- regex: 'qutebrowser/(\d+[\.\d]+).+Chrome'
name: 'Qutebrowser'
Expand Down