File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 212
212
* @private
213
213
* @param {Array } array The array to iterate over.
214
214
* @param {Function } callback The function called per iteration.
215
- * @param {* } accumulator Initial value of the accumulator.
216
215
* @returns {* } The accumulator.
217
216
*/
218
217
function reduce ( array , callback ) {
412
411
return result || (
413
412
value [ product ] ||
414
413
value [ 0 /*Opera 9.25 fix*/ , / ^ [ a - z ] + (?: + [ a - z ] + \b ) * / i. exec ( product ) ] ||
415
- RegExp ( '\\b' + ( key . pattern || qualify ( key ) ) + '(?:\\b|\\w*\\d)' , 'i' ) . exec ( ua )
416
- ) && ( key . label || key ) ;
414
+ RegExp ( '\\b' + qualify ( key ) + '(?:\\b|\\w*\\d)' , 'i' ) . exec ( ua )
415
+ ) && key ;
417
416
} ) ;
418
417
}
419
418
557
556
product = ( product ? product + ' ' : '' ) + 'Simulator' ;
558
557
}
559
558
// detect Firefox OS
560
- if ( ( / \( M o b i l e | T a b l e t . * F i r e f o x / i) . test ( ua ) ) {
559
+ if ( ( / \( (?: M o b i l e | T a b l e t ) . * ? F i r e f o x / i) . test ( ua ) ) {
561
560
os = 'Firefox OS' ;
562
561
}
563
562
// detect iOS
You can’t perform that action at this time.
0 commit comments