$this->version = $regs[1];
$this->bot = false;
}
+ elseif (preg_match('|Edge/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+ $this->brand = 'Project Spartan';
+ $this->version = null;
+ $this->bot = false;
+ }
elseif (preg_match('|Chromium/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
$this->brand = 'Chromium';
$this->version = $regs[1];
$this->uadata['eng_version'] = $regs[1];
}
}
+ elseif (preg_match('|Edge/([0-9\.]+)|', $this->uastring, $regs)) {
+ $this->uadata['engine'] = 'edge';
+ $this->uadata['eng_version'] = $regs[1];
+ }
elseif ((strpos($this->brand, 'Internet Explorer') !== false) || (strpos($this->brand, 'FrontPage') !== false)) {
if ((strpos(strtolower($this->uastring), 'mac') !== false) && (intval($this->getVersion()) >= 5)) {
$this->uadata['engine'] = 'tasman';
$this->uadata['eng_version'] = null;
}
}
+ elseif ($this->hasEngine('edge')) {
+ if (preg_match('#Mozilla/5.0 \(([^;]+); (WOW64|Win64); ([^\);]+)\)#', $this->uastring, $regs)) {
+ $this->uadata['os'] = $regs[1].' ('.$regs[2].')';
+ }
+ }
elseif ($this->hasEngine('trident') || $this->hasEngine('tasman')) {
if (preg_match('/Mozilla\/[^\(]+ \((IE [^;]+[^\)]*; )?((?:Mac|Win)[^;]+); ?(Win64|WOW64); ?Trident\/([^;\)]+);/i', $this->uastring, $regs)) {
$this->uadata['eng_version'] = $regs[4];
Mozilla/5.0 (X11; U; Linux i686) Gecko/20040319 Galeon/1.3.7
Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021204
Galeon/1.3.7 (IE4 compatible; I; Windows XP) Galeon/1.3.7 Debian/1.3.7.20030803-1
+Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0
Microsoft Internet Explorer/4.0b1 (Windows 95)
Mozilla/1.22 (compatible; MSIE 1.5; Windows NT)
Mozilla/2.0 (compatible; MSIE 3.01; Windows 95)