Skip to content

Commit

Permalink
Merge branch 'master' into bots
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezzzhak authored May 27, 2024
2 parents c995ff0 + ab5d363 commit 9e84896
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ class Browser extends AbstractClientParser
'MY' => 'Mypal',
'MR' => 'Monument Browser',
'MW' => 'MAUI WAP Browser',
'N7' => 'Naenara Browser',
'NW' => 'Navigateur Web',
'NK' => 'Naked Browser',
'NA' => 'Naked Browser Pro',
Expand Down Expand Up @@ -724,7 +725,7 @@ class Browser extends AbstractClientParser
'IW', 'LH', 'LY', 'MB', 'MN', 'MO', 'MY', 'OA', 'OS',
'PI', 'PX', 'QA', 'S5', 'SX', 'TF', 'TO', 'WF', 'ZV',
'FP', 'AD', 'WL', '2I', 'P9', 'KJ', 'WY', 'VK', 'W5',
'7C',
'7C', 'N7',
],
'Internet Explorer' => ['IE', 'CZ', 'BZ', 'IM', 'PS', '3A', '4A', 'RN'],
'Konqueror' => ['KO'],
Expand Down
3 changes: 2 additions & 1 deletion Parser/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class OperatingSystem extends AbstractParser
'PIO' => 'Raspberry Pi OS',
'RAS' => 'Raspbian',
'RHT' => 'Red Hat',
'RST' => 'Red Star',
'RED' => 'RedOS',
'REV' => 'Revenge OS',
'ROS' => 'RISC OS',
Expand Down Expand Up @@ -232,7 +233,7 @@ class OperatingSystem extends AbstractParser
'FOR', 'MON', 'KAN', 'ZEN', 'LND', 'LNS', 'CHN', 'AMZ', 'TEN', 'CST',
'NOV', 'ROU', 'ZOR', 'RED', 'KAL', 'ORA', 'VID', 'TIV', 'BSN', 'RAS',
'UOS', 'PIO', 'FRI', 'LIR', 'WEB', 'SER', 'ASP', 'AOS', 'LOO', 'EUL',
'SCI', 'ALP', 'CLO', 'ROC', 'OVZ', 'PVE',
'SCI', 'ALP', 'CLO', 'ROC', 'OVZ', 'PVE', 'RST',
],
'Mac' => ['MAC'],
'Mobile Gaming Console' => ['PSP', 'NDS', 'XBX'],
Expand Down
8 changes: 4 additions & 4 deletions README.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9415,3 +9415,12 @@
engine: ""
engine_version: ""
family: ""
-
user_agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4) Gecko/20130508 Fedora/1.9.1-2.5.rs3.0 NaenaraBrowser/3.5b4
client:
type: browser
name: Naenara Browser
version: "3.5"
engine: Gecko
engine_version: 1.9.1
family: Firefox
16 changes: 16 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4942,3 +4942,19 @@
version: "16.1"
platform: ARM
family: iOS
-
user_agent: Mozilla/5.0 (X11; U; Linux i686; ko-KP, en; rv:1.8.1.8) Gecko/20090718 《붉은별》/2.5 NaenaraBrowser/2.0.0.8
os:
name: Red Star
short_name: RST
version: ""
platform: x86
family: GNU/Linux
-
user_agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4) Gecko/20130508 Fedora/1.9.1-2.5.rs3.0 NaenaraBrowser/3.5b4
os:
name: Red Star
short_name: RST
version: "3.0"
platform: x86
family: GNU/Linux
7 changes: 7 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

# Naenara Browser (https://en.wikipedia.org/wiki/Naenara_(browser))
- regex: 'NaenaraBrowser(?:/(\d+[\.\d]+))?'
name: 'Naenara Browser'
version: '$1'
engine:
default: 'Gecko'

# NOOK Browser
- regex: 'nook browser(?:/(\d+[\.\d]+))?'
name: 'NOOK Browser'
Expand Down
7 changes: 7 additions & 0 deletions regexes/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

##########
# Red Star (https://en.wikipedia.org/wiki/Red_Star_OS)
##########
- regex: '붉은별|Fedora/(?:\d+\.[\d.-]+)\.rs(\d+(?:[_.]\d+)*)'
name: 'Red Star'
version: '$1'

##########
# Proxmox VE (https://pve.proxmox.com/wiki/Main_Page)
##########
Expand Down

0 comments on commit 9e84896

Please sign in to comment.