File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ const userAgentRules: UserAgentRule[] = [
137
137
[ 'silk' , / \b S i l k \/ ( [ 0 - 9 . _ - ] + ) \b / ] ,
138
138
[ 'miui' , / M i u i B r o w s e r \/ ( [ 0 - 9 \. ] + ) $ / ] ,
139
139
[ 'beaker' , / B e a k e r B r o w s e r \/ ( [ 0 - 9 \. ] + ) / ] ,
140
- [ 'edge-chromium' , / E d g \/ ( [ 0 - 9 \. ] + ) / ] ,
140
+ [ 'edge-chromium' , / E d g A ? \/ ( [ 0 - 9 \. ] + ) / ] ,
141
141
[
142
142
'chromium-webview' ,
143
143
/ (? ! C h r o m .* O P R ) w v \) .* C h r o m (?: e | i u m ) \/ ( [ 0 - 9 \. ] + ) ( : ? \s | $ ) / ,
Original file line number Diff line number Diff line change @@ -426,6 +426,20 @@ test('detects edge chromium', function(t) {
426
426
t . end ( ) ;
427
427
} ) ;
428
428
429
+ test ( 'detects edge chromium (android os)' , function ( t ) {
430
+ assertAgentString (
431
+ t ,
432
+ 'Mozilla/5.0 (Linux; Android 9; SM-N950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/45.08.4.5074' ,
433
+ {
434
+ type : 'browser' ,
435
+ name : 'edge-chromium' ,
436
+ version : '45.08.4' ,
437
+ os : 'Android OS' ,
438
+ } ,
439
+ ) ;
440
+ t . end ( ) ;
441
+ } ) ;
442
+
429
443
test ( 'detects edge iOS' , function ( t ) {
430
444
assertAgentString (
431
445
t ,
You can’t perform that action at this time.
0 commit comments