Skip to content

Commit

Permalink
Adds detection for LeafOS
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Oct 14, 2024
1 parent 4ccddaf commit 687e9a9
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 @@ -112,6 +112,7 @@ class OperatingSystem extends AbstractParser
'KTV' => 'KreaTV',
'KBT' => 'Kubuntu',
'LIN' => 'GNU/Linux',
'LEA' => 'LeafOS',
'LND' => 'LindowsOS',
'LNS' => 'Linspire',
'LEN' => 'Lineage OS',
Expand Down Expand Up @@ -233,7 +234,7 @@ class OperatingSystem extends AbstractParser
'Android' => [
'AND', 'CYN', 'FIR', 'REM', 'RZD', 'MLD', 'MCD', 'YNS', 'GRI', 'HAR',
'ADR', 'CLR', 'BOS', 'REV', 'LEN', 'SIR', 'RRS', 'WER', 'PIC', 'ARM',
'HEL', 'BYI', 'RIS', 'PUF',
'HEL', 'BYI', 'RIS', 'PUF', 'LEA',
],
'AmigaOS' => ['AMG', 'MOR', 'ARO'],
'BlackBerry' => ['BLB', 'QNX'],
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 @@ -5238,3 +5238,11 @@
version: 15633.72.0
platform: ""
family: Chrome OS
-
user_agent: Mozilla/5.0 (Linux; Android 14; LeafOS on ARM64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
os:
name: LeafOS
short_name: LEA
version: ""
platform: ARM
family: Android
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
###############

##########
# LeafOS (https://www.leafos.org/)
##########
- regex: 'LeafOS'
name: 'LeafOS'
version: ''

##########
# Puffin OS (https://www.puffin.com/os/help/faq/)
##########
Expand Down

0 comments on commit 687e9a9

Please # to comment.