Skip to content

Commit

Permalink
Adds detection for blackPanther OS (#7755)
Browse files Browse the repository at this point in the history
* Adds detection for blackPanther OS
  • Loading branch information
liviuconcioiu authored Aug 2, 2024
1 parent c250968 commit 5126696
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Parser/OperatingSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class OperatingSystem extends AbstractParser
'BEO' => 'BeOS',
'BLB' => 'BlackBerry OS',
'QNX' => 'BlackBerry Tablet OS',
'PAN' => 'blackPanther OS',
'BOS' => 'Bliss OS',
'BMP' => 'Brew',
'BSN' => 'BrightSignOS',
Expand Down Expand Up @@ -250,7 +251,7 @@ class OperatingSystem extends AbstractParser
'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', 'RST', 'EZX', 'GNS', 'JOL',
'TUR', 'QTP', 'WPO',
'TUR', 'QTP', 'WPO', 'PAN',
],
'Mac' => ['MAC'],
'Mobile Gaming Console' => ['PSP', 'NDS', 'XBX'],
Expand Down
8 changes: 8 additions & 0 deletions Tests/Parser/fixtures/oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5118,3 +5118,11 @@
version: "17.2"
platform: ""
family: iOS
-
user_agent: Mozilla/5.0 (X11; blackPanther OS; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
os:
name: blackPanther OS
short_name: PAN
version: ""
platform: x64
family: GNU/Linux
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
###############

##########
# blackPanther OS (https://blackpantheros.eu/)
##########
- regex: 'blackPanther OS'
name: 'blackPanther OS'
version: ''

##########
# WoPhone
##########
Expand Down

0 comments on commit 5126696

Please sign in to comment.