Skip to content

Commit 11f241f

Browse files
committed
Simplify regex a little
1 parent 8c8b368 commit 11f241f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/UserAgentParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function parse_user_agent( $u_agent = null ) {
9999
%(?P<prev>.)?(?P<browser>Camino|Kindle(\ Fire)?|Firefox|Iceweasel|IceCat|Safari|MSIE|Trident|AppleWebKit|
100100
TizenBrowser|(?:Headless)?Chrome|YaBrowser|Vivaldi|IEMobile|Opera|OPR|Silk|Midori|(?-i:Edge)|EdgA?|CriOS|UCBrowser|Puffin|
101101
OculusBrowser|SamsungBrowser|SailfishBrowser|XiaoMi/MiuiBrowser|YaApp_Android|Whale|
102-
Baiduspider|Applebot|Facebot|Googlebot|YandexBot|bingbot|Lynx|Version|Wget|curl|ChatGPT-User|GPTBot|OAI-SearchBot|
102+
Applebot|Facebot|Googlebot|YandexBot|bingbot|Lynx|Version|
103103
Valve\ Steam\ Tenfoot|Mastodon|
104104
NintendoBrowser|PLAYSTATION\ (?:\d|Vita)+)
105105
\)?;?

0 commit comments

Comments
 (0)