Skip to content

Commit

Permalink
Add surf browser (#6226)
Browse files Browse the repository at this point in the history
  • Loading branch information
J5lx committed Apr 5, 2020
1 parent 5eccbeb commit 954e74f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Parser/Client/Browser.php
Expand Up @@ -232,6 +232,7 @@ class Browser extends ClientParserAbstract
'SR' => 'Sunrise',
'SP' => 'SuperBird',
'SU' => 'Super Fast Browser',
'S3' => 'surf',
'S0' => 'START Internet Browser',
'ST' => 'Streamy',
'SX' => 'Swiftfox',
Expand Down
9 changes: 9 additions & 0 deletions Tests/Parser/Client/fixtures/browser.yml
Expand Up @@ -2537,3 +2537,12 @@
version: "1.0"
engine: WebKit
engine_version: "537.36"
-
user_agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Surf/2.0
client:
type: browser
name: surf
short_name: S3
version: "2.0"
engine: WebKit
engine_version: 605.1.15
7 changes: 7 additions & 0 deletions regexes/client/browsers.yml
Expand Up @@ -1544,6 +1544,13 @@
name: 'Qutebrowser'
version: '$1'

# surf (https://surf.suckless.org/)
- regex: 'Surf(?:/(\d+[\.\d]+))?'
name: 'surf'
version: '$1'
engine:
default: 'WebKit'

#Safari
- regex: '(?:(?:iPod|iPad|iPhone).+Version|MobileSafari)/(\d+[\.\d]+)'
name: 'Mobile Safari'
Expand Down

0 comments on commit 954e74f

Please sign in to comment.