Fix #1811 Add chromium edge detection to getBrowserInfo

This commit is contained in:
YJSoft 2021-10-15 10:48:16 +09:00
parent 10ab65e2f4
commit 34f76a79d7
2 changed files with 22 additions and 1 deletions

View file

@ -275,7 +275,7 @@ class UA
return $result;
}
}
if (preg_match('#Edge/([0-9]+\\.)#', $ua, $matches))
if (preg_match('#Edg(?:e|A|iOS)?/([0-9]+\\.)#', $ua, $matches))
{
$result->browser = 'Edge';
$result->version = $matches[1] . '0';