Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/AgentCategory/Browser/SafariChrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ public static function challenge($ua, &$result)
return true;
}

if (preg_match('@GSA/([.0-9]+)@', $ua, $matches)) {
$version = $matches[1];
static::updateMap($result, DataSet::get('GSA'));
static::updateVersion($result, $version);

return true;;
}

if (preg_match('/Version\/([.0-9]+)/uD', $ua, $matches)) {
$version = $matches[1];
}
Expand Down
10 changes: 8 additions & 2 deletions src/DataSet.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Woothee;

// GENERATED from dataset.yml at Sun Jul 22 02:46:33 JST 2018 by tell_k
// GENERATED from dataset.yml at Mon Sep 20 17:44:29 UTC 2021 by tadsan
class DataSet
{
const DATASET_KEY_LABEL = 'label';
Expand Down Expand Up @@ -100,6 +100,12 @@ class DataSet
'type' => 'browser',
'vendor' => 'Fenrir Inc.',
),
'GSA' => array(
'label' => 'GSA',
'name' => 'Google Search App',
'type' => 'browser',
'vendor' => 'Google',
),
'Webview' => array(
'label' => 'Webview',
'name' => 'Webview',
Expand Down Expand Up @@ -633,7 +639,7 @@ class DataSet
'name' => 'misc crawler',
'type' => 'full',
'category' => 'crawler',
),
)
);

public static function get($label)
Expand Down
2 changes: 1 addition & 1 deletion woothee