Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add surf browser #6226

Merged
merged 1 commit into from Apr 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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