Update Current.php
This commit is contained in:
parent
b9ac5230ad
commit
77466f3444
1 changed files with 3 additions and 1 deletions
|
@ -122,7 +122,7 @@ class Current extends Action
|
|||
'spider' => ['%spider(?![\w ]*build/)%'],
|
||||
'google' => ['%google(?:\w| |;|\-(?!tr))%'],
|
||||
'wordpress' => ['', '%(wordpress)%i'],
|
||||
'compatible' => ['%compatible(?!;\ msie)%', '%compatible[;) ]+([\w ./!-]+)%i']
|
||||
'compatible' => ['%compatible(?!;\ msie)%', '%compatible[;) (]+([\w ./!-]+)%i']
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -179,11 +179,13 @@ class Current extends Action
|
|||
'%[^\w/.-]+%',
|
||||
'%(?:_| |-|\b)bot(?:_| |-|\b)%i',
|
||||
'%(?<=^|\s)[^a-zA-Z\s]{1,2}(?:\s|$)%',
|
||||
'%/\S*+\K.+%',
|
||||
];
|
||||
$rep = [
|
||||
' ',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
];
|
||||
|
||||
$agent = \trim(\preg_replace($reg, $rep, $agent));
|
||||
|
|
Loading…
Reference in a new issue