Skip to content

Commit

Permalink
Small cleanup to PS4 rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Aug 26, 2019
1 parent 6ae43bd commit d7b8a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserAgentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function parse_user_agent( $u_agent = null ) {

$find('Version', $key);
$version = $result['version'][$key];
} elseif( $pKey = preg_grep('/playstation \d/', array_map('strtolower', $result['browser'])) ) {
} elseif( $pKey = preg_grep('/playstation \d/i', $result['browser']) ) {
$pKey = reset($pKey);

$platform = 'PlayStation ' . preg_replace('/\D/', '', $pKey);
Expand Down

0 comments on commit d7b8a2a

Please sign in to comment.