diff --git a/Parser/AbstractParser.php b/Parser/AbstractParser.php index 6f59125ebe..6f7d82209e 100644 --- a/Parser/AbstractParser.php +++ b/Parser/AbstractParser.php @@ -312,7 +312,7 @@ protected function matchUserAgent(string $regex): ?array $matches = []; // only match if useragent begins with given regex or there is no letter before it - $regex = '/(?:^|[^A-Z0-9\-_]|[^A-Z0-9\-]_|sprd-|MZ-)(?:' . \str_replace('/', '\/', $regex) . ')/i'; + $regex = '/(?:^|[^A-Z0-9_-]|[^A-Z0-9-]_|sprd-|MZ-)(?:' . \str_replace('/', '\/', $regex) . ')/i'; try { if (\preg_match($regex, $this->userAgent, $matches)) { diff --git a/regexes/bots.yml b/regexes/bots.yml index 6a4622cbda..bc7fb3c60b 100644 --- a/regexes/bots.yml +++ b/regexes/bots.yml @@ -3533,5 +3533,5 @@ url: 'https://www.bbc.com/' # Generic detections -- regex: '[a-z0-9\-_]*(?:(?