This repository was archived by the owner on Apr 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 391
391
{ 'label' : 'Opera Mini' , 'pattern' : 'OPiOS' } ,
392
392
'Opera' ,
393
393
{ 'label' : 'Opera' , 'pattern' : 'OPR' } ,
394
+ 'Chromium' ,
394
395
'Chrome' ,
395
396
{ 'label' : 'Chrome Mobile' , 'pattern' : '(?:CriOS|CrMo)' } ,
396
397
{ 'label' : 'Firefox' , 'pattern' : '(?:Firefox|Minefield)' } ,
972
973
ua . indexOf ( '/' + data + '-' ) > - 1 ) {
973
974
os = trim ( os . replace ( data , '' ) ) ;
974
975
}
976
+ // Ensure OS does not include the browser name.
977
+ if ( os && os . indexOf ( name ) != - 1 ) && ! RegExp ( name + ' OS' ) . test ( os ) ) {
978
+ os = os . replace ( RegExp ( ' *' + qualify ( name ) + ' *' ) , '' ) ;
979
+ }
975
980
// Add layout engine.
976
981
if ( layout && ! / \b (?: A v a n t | N o o k ) \b / . test ( name ) && (
977
982
/ B r o w s e r | L u n a s c a p e | M a x t h o n / . test ( name ) ||
Original file line number Diff line number Diff line change 628
628
'os' : 'iOS 4.3+'
629
629
} ,
630
630
631
+ 'Chromium 66.0.3359.181 on Ubuntu 64-bit' : {
632
+ 'ua' : 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36' ,
633
+ 'layout' : 'Blink' ,
634
+ 'name' : 'Chromium' ,
635
+ 'os' : 'Ubuntu 64-bit' ,
636
+ 'version' : '66.0.3359.181'
637
+ } ,
638
+
631
639
'Electron 1.4.5 (Chromium 53.0.2785.113; Node 6.5.0) on Windows 10 64-bit' : {
632
640
'ua' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) electron-app/1.0.0 Chrome/53.0.2785.113 Electron/1.4.5 Safari/537.36' ,
633
641
'global' : { } ,
You can’t perform that action at this time.
0 commit comments