This repository was archived by the owner on Jan 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
tests/BrowserDetector/Tests/_files Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,14 @@ public static function checkBrowserEdge()
462462 }
463463 self ::$ browser ->setName (Browser::EDGE );
464464
465+ return true ;
466+ } elseif (stripos (self ::$ userAgentString , 'Edg ' ) !== false ) {
467+ $ version = explode ('Edg/ ' , self ::$ userAgentString );
468+ if (isset ($ version [1 ])) {
469+ self ::$ browser ->setVersion (trim ($ version [1 ]));
470+ }
471+ self ::$ browser ->setName (Browser::EDGE );
472+
465473 return true ;
466474 }
467475
Original file line number Diff line number Diff line change 274274 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) wkhtmltopdf-amd64 Safari/534.34
275275 </field >
276276 </string >
277+ <string >
278+ <field name =" browser" >Edge</field >
279+ <field name =" version" >80.0.361.40</field >
280+ <field name =" os" >Windows</field >
281+ <field name =" os_version" >10.0</field >
282+ <field name =" device" >unknown</field >
283+ <field name =" device_version" >unknown</field >
284+ <field name =" string" >
285+ Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66
286+ Safari/537.36 Edg/80.0.361.40
287+ </field >
288+ </string >
277289 </strings >
278290</document >
You can’t perform that action at this time.
0 commit comments