Skip to content

Commit

Permalink
Adds detection for Lolifox browser (#6670)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Feb 15, 2021
1 parent 6d1b8cf commit 7f7899a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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

0 comments on commit 7f7899a

Please sign in to comment.