Skip to content

Commit

Permalink
Adds detection for Roccat
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jun 20, 2024
1 parent d7b9a83 commit 18bfc60
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ class Browser extends AbstractClientParser
'P0' => 'PronHub Browser',
'PC' => 'PSI Secure Browser',
'RW' => 'Reqwireless WebViewer',
'RO' => 'Roccat',
'PS' => 'Microsoft Edge',
'QA' => 'Qazweb',
'QI' => 'Qiyu',
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9478,3 +9478,12 @@
engine: Gecko
engine_version: "1.9"
family: Firefox
-
user_agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7_3; en-us) AppleWebKit/534.53.11 (KHTML, like Gecko) Roccat/2.3 Roccat/534.53.11
client:
type: browser
name: Roccat
version: "2.3"
engine: WebKit
engine_version: 534.53.11
family: ""
5 changes: 5 additions & 0 deletions regexes/client/browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# @license http://www.gnu.org/licenses/lgpl.html LGPL v3 or later
###############

# Roccat (https://runecats.com/roccat-browser-for-mac/)
- regex: 'Roccat(?:/(\d+[\.\d]+))?'
name: 'Roccat'
version: '$1'

# Swiftweasel (https://swiftweasel.tuxfamily.org/)
- regex: 'Swiftweasel(?:/(\d+[\.\d]+))?'
name: 'Swiftweasel'
Expand Down

0 comments on commit 18bfc60

Please sign in to comment.