@@ -90,7 +90,7 @@ var uastrings = []struct {
90
90
title : "IE10" ,
91
91
ua : "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)" ,
92
92
expected : "Mozilla:5.0 Platform:Windows OS:Windows 8 Browser:Internet Explorer-10.0 Engine:Trident Bot:false Mobile:false" ,
93
- expectedOS : & OSInfo {"Windows 8" , "Windows" , "8" , "" , "Windows" },
93
+ expectedOS : & OSInfo {"Windows 8" , "Windows" , "8" },
94
94
},
95
95
{
96
96
title : "Tablet" ,
@@ -106,19 +106,19 @@ var uastrings = []struct {
106
106
title : "Phone" ,
107
107
ua : "Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0; SAMSUNG; SGH-i917)" ,
108
108
expected : "Mozilla:4.0 Platform:Windows OS:Windows Phone OS 7.0 Browser:Internet Explorer-7.0 Engine:Trident Bot:false Mobile:true" ,
109
- expectedOS : & OSInfo {"Windows Phone OS 7.0" , "Windows Phone OS" , "7.0" , "" , "Windows" },
109
+ expectedOS : & OSInfo {"Windows Phone OS 7.0" , "Windows Phone OS" , "7.0" },
110
110
},
111
111
{
112
112
title : "IE6" ,
113
113
ua : "Mozilla/4.0 (compatible; MSIE6.0; Windows NT 5.0; .NET CLR 1.1.4322)" ,
114
114
expected : "Mozilla:4.0 Platform:Windows OS:Windows 2000 Browser:Internet Explorer-6.0 Engine:Trident Bot:false Mobile:false" ,
115
- expectedOS : & OSInfo {"Windows 2000" , "Windows" , "2000" , "" , "Windows" },
115
+ expectedOS : & OSInfo {"Windows 2000" , "Windows" , "2000" },
116
116
},
117
117
{
118
118
title : "IE8Compatibility" ,
119
119
ua : "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)" ,
120
120
expected : "Mozilla:4.0 Platform:Windows OS:Windows 7 Browser:Internet Explorer-8.0 Engine:Trident Bot:false Mobile:false" ,
121
- expectedOS : & OSInfo {"Windows 7" , "Windows" , "7" , "" , "Windows" },
121
+ expectedOS : & OSInfo {"Windows 7" , "Windows" , "7" },
122
122
},
123
123
{
124
124
title : "IE10Compatibility" ,
@@ -129,7 +129,7 @@ var uastrings = []struct {
129
129
title : "IE11Win81" ,
130
130
ua : "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" ,
131
131
expected : "Mozilla:5.0 Platform:Windows OS:Windows 8.1 Browser:Internet Explorer-11.0 Engine:Trident Bot:false Mobile:false" ,
132
- expectedOS : & OSInfo {"Windows 8.1" , "Windows" , "8.1" , "" , "Windows" },
132
+ expectedOS : & OSInfo {"Windows 8.1" , "Windows" , "8.1" },
133
133
},
134
134
{
135
135
title : "IE11Win7" ,
@@ -157,7 +157,7 @@ var uastrings = []struct {
157
157
title : "EdgeDesktop" ,
158
158
ua : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" ,
159
159
expected : "Mozilla:5.0 Platform:Windows OS:Windows 10 Browser:Edge-12.10240 Engine:EdgeHTML Bot:false Mobile:false" ,
160
- expectedOS : & OSInfo {"Windows 10" , "Windows" , "10" , "" , "Windows" },
160
+ expectedOS : & OSInfo {"Windows 10" , "Windows" , "10" },
161
161
},
162
162
{
163
163
title : "EdgeMobile" ,
@@ -170,31 +170,31 @@ var uastrings = []struct {
170
170
title : "FirefoxMac" ,
171
171
ua : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8) Gecko/20100101 Firefox/4.0b8" ,
172
172
expected : "Mozilla:5.0 Platform:Macintosh OS:Intel Mac OS X 10.6 Browser:Firefox-4.0b8 Engine:Gecko-20100101 Bot:false Mobile:false" ,
173
- expectedOS : & OSInfo {"Intel Mac OS X 10.6" , "Mac OS X" , "10.6" , "" , "Macintosh" },
173
+ expectedOS : & OSInfo {"Intel Mac OS X 10.6" , "Mac OS X" , "10.6" },
174
174
},
175
175
{
176
176
title : "FirefoxMacLoc" ,
177
177
ua : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13" ,
178
178
expected : "Mozilla:5.0 Platform:Macintosh OS:Intel Mac OS X 10.6 Localization:en-US Browser:Firefox-3.6.13 Engine:Gecko-20101203 Bot:false Mobile:false" ,
179
- expectedOS : & OSInfo {"Intel Mac OS X 10.6" , "Mac OS X" , "10.6" , "en-US" , "Macintosh" },
179
+ expectedOS : & OSInfo {"Intel Mac OS X 10.6" , "Mac OS X" , "10.6" },
180
180
},
181
181
{
182
182
title : "FirefoxLinux" ,
183
183
ua : "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0" ,
184
184
expected : "Mozilla:5.0 Platform:X11 OS:Linux x86_64 Browser:Firefox-17.0 Engine:Gecko-20100101 Bot:false Mobile:false" ,
185
- expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" , "" , "X11" },
185
+ expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" },
186
186
},
187
187
{
188
188
title : "FirefoxLinux - Ubuntu V50" ,
189
189
ua : "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0" ,
190
190
expected : "Mozilla:5.0 Platform:X11 OS:Ubuntu Browser:Firefox-50.0 Engine:Gecko-20100101 Bot:false Mobile:false" ,
191
- expectedOS : & OSInfo {"Ubuntu" , "Ubuntu" , "" , "" , "X11" },
191
+ expectedOS : & OSInfo {"Ubuntu" , "Ubuntu" , "" },
192
192
},
193
193
{
194
194
title : "FirefoxWin" ,
195
195
ua : "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14" ,
196
196
expected : "Mozilla:5.0 Platform:Windows OS:Windows XP Localization:en-US Browser:Firefox-2.0.0.14 Engine:Gecko-20080404 Bot:false Mobile:false" ,
197
- expectedOS : & OSInfo {"Windows XP" , "Windows" , "XP" , "en-US" , "Windows" },
197
+ expectedOS : & OSInfo {"Windows XP" , "Windows" , "XP" },
198
198
},
199
199
{
200
200
title : "Firefox29Win7" ,
@@ -205,13 +205,13 @@ var uastrings = []struct {
205
205
title : "CaminoMac" ,
206
206
ua : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.14) Gecko/20080409 Camino/1.6 (like Firefox/2.0.0.14)" ,
207
207
expected : "Mozilla:5.0 Platform:Macintosh OS:Intel Mac OS X Localization:en Browser:Camino-1.6 Engine:Gecko-20080409 Bot:false Mobile:false" ,
208
- expectedOS : & OSInfo {"Intel Mac OS X" , "Mac OS X" , "" , "en" , "Macintosh" },
208
+ expectedOS : & OSInfo {"Intel Mac OS X" , "Mac OS X" , "" },
209
209
},
210
210
{
211
211
title : "Iceweasel" ,
212
212
ua : "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061024 Iceweasel/2.0 (Debian-2.0+dfsg-1)" ,
213
213
expected : "Mozilla:5.0 Platform:X11 OS:Linux i686 Localization:en-US Browser:Iceweasel-2.0 Engine:Gecko-20061024 Bot:false Mobile:false" ,
214
- expectedOS : & OSInfo {"Linux i686" , "Linux" , "" , "en-US" , "X11" },
214
+ expectedOS : & OSInfo {"Linux i686" , "Linux" , "" },
215
215
},
216
216
{
217
217
title : "SeaMonkey" ,
@@ -227,13 +227,13 @@ var uastrings = []struct {
227
227
title : "AndroidFirefoxTablet" ,
228
228
ua : "Mozilla/5.0 (Android; Tablet; rv:26.0) Gecko/26.0 Firefox/26.0" ,
229
229
expected : "Mozilla:5.0 Platform:Tablet OS:Android Browser:Firefox-26.0 Engine:Gecko-26.0 Bot:false Mobile:true" ,
230
- expectedOS : & OSInfo {"Android" , "Android" , "" , "" , "Tablet" },
230
+ expectedOS : & OSInfo {"Android" , "Android" , "" },
231
231
},
232
232
{
233
233
title : "FirefoxOS" ,
234
234
ua : "Mozilla/5.0 (Mobile; rv:26.0) Gecko/26.0 Firefox/26.0" ,
235
235
expected : "Mozilla:5.0 Platform:Mobile OS:FirefoxOS Browser:Firefox-26.0 Engine:Gecko-26.0 Bot:false Mobile:true" ,
236
- expectedOS : & OSInfo {"FirefoxOS" , "FirefoxOS" , "" , "" , "Mobile" },
236
+ expectedOS : & OSInfo {"FirefoxOS" , "FirefoxOS" , "" },
237
237
},
238
238
{
239
239
title : "FirefoxOSTablet" ,
@@ -244,7 +244,7 @@ var uastrings = []struct {
244
244
title : "FirefoxWinXP" ,
245
245
ua : "Mozilla/5.0 (Windows NT 5.2; rv:31.0) Gecko/20100101 Firefox/31.0" ,
246
246
expected : "Mozilla:5.0 Platform:Windows OS:Windows XP x64 Edition Browser:Firefox-31.0 Engine:Gecko-20100101 Bot:false Mobile:false" ,
247
- expectedOS : & OSInfo {"Windows XP x64 Edition" , "Windows" , "XP" , "" , "Windows" },
247
+ expectedOS : & OSInfo {"Windows XP x64 Edition" , "Windows" , "XP" },
248
248
},
249
249
{
250
250
title : "FirefoxMRA" ,
@@ -257,7 +257,7 @@ var uastrings = []struct {
257
257
title : "OperaMac" ,
258
258
ua : "Opera/9.27 (Macintosh; Intel Mac OS X; U; en)" ,
259
259
expected : "Platform:Macintosh OS:Intel Mac OS X Localization:en Browser:Opera-9.27 Engine:Presto Bot:false Mobile:false" ,
260
- expectedOS : & OSInfo {"Intel Mac OS X" , "Mac OS X" , "" , "en" , "Macintosh" },
260
+ expectedOS : & OSInfo {"Intel Mac OS X" , "Mac OS X" , "" },
261
261
},
262
262
{
263
263
title : "OperaWin" ,
@@ -273,7 +273,7 @@ var uastrings = []struct {
273
273
title : "OperaWin2Comment" ,
274
274
ua : "Opera/9.80 (Windows NT 6.0; WOW64) Presto/2.12.388 Version/12.15" ,
275
275
expected : "Platform:Windows OS:Windows Vista Browser:Opera-9.80 Engine:Presto-2.12.388 Bot:false Mobile:false" ,
276
- expectedOS : & OSInfo {"Windows Vista" , "Windows" , "Vista" , "" , "Windows" },
276
+ expectedOS : & OSInfo {"Windows Vista" , "Windows" , "Vista" },
277
277
},
278
278
{
279
279
title : "OperaMinimal" ,
@@ -294,13 +294,13 @@ var uastrings = []struct {
294
294
title : "OperaLinux - Ubuntu V41" ,
295
295
ua : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 OPR/41.0.2353.69" ,
296
296
expected : "Mozilla:5.0 Platform:X11 OS:Linux x86_64 Browser:Opera-41.0.2353.69 Engine:AppleWebKit-537.36 Bot:false Mobile:false" ,
297
- expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" , "" , "X11" },
297
+ expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" },
298
298
},
299
299
{
300
300
title : "OperaAndroid" ,
301
301
ua : "Opera/9.80 (Android 4.2.1; Linux; Opera Mobi/ADR-1212030829) Presto/2.11.355 Version/12.10" ,
302
302
expected : "Platform:Android 4.2.1 OS:Linux Browser:Opera-9.80 Engine:Presto-2.11.355 Bot:false Mobile:true" ,
303
- expectedOS : & OSInfo {"Linux" , "Linux" , "" , "" , "Android 4.2.1" },
303
+ expectedOS : & OSInfo {"Linux" , "Linux" , "" },
304
304
},
305
305
{
306
306
title : "OperaNested" ,
@@ -360,7 +360,7 @@ var uastrings = []struct {
360
360
title : "ChromeLinux" ,
361
361
ua : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11" ,
362
362
expected : "Mozilla:5.0 Platform:X11 OS:Linux x86_64 Browser:Chrome-23.0.1271.97 Engine:AppleWebKit-537.11 Bot:false Mobile:false" ,
363
- expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" , "" , "X11" },
363
+ expectedOS : & OSInfo {"Linux x86_64" , "Linux" , "" },
364
364
},
365
365
{
366
366
title : "ChromeLinux - Ubuntu V55" ,
@@ -381,7 +381,7 @@ var uastrings = []struct {
381
381
title : "ChromeMac" ,
382
382
ua : "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.231 Safari/534.10" ,
383
383
expected : "Mozilla:5.0 Platform:Macintosh OS:Intel Mac OS X 10_6_5 Localization:en-US Browser:Chrome-8.0.552.231 Engine:AppleWebKit-534.10 Bot:false Mobile:false" ,
384
- expectedOS : & OSInfo {"Intel Mac OS X 10_6_5" , "Mac OS X" , "10.6.5" , "en-US" , "Macintosh" },
384
+ expectedOS : & OSInfo {"Intel Mac OS X 10_6_5" , "Mac OS X" , "10.6.5" },
385
385
},
386
386
{
387
387
title : "SafariMac" ,
@@ -397,7 +397,7 @@ var uastrings = []struct {
397
397
title : "iPhone7" ,
398
398
ua : "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_3 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B511 Safari/9537.53" ,
399
399
expected : "Mozilla:5.0 Platform:iPhone OS:CPU iPhone OS 7_0_3 like Mac OS X Browser:Safari-7.0 Engine:AppleWebKit-537.51.1 Bot:false Mobile:true" ,
400
- expectedOS : & OSInfo {"CPU iPhone OS 7_0_3 like Mac OS X" , "iPhone OS" , "7.0.3" , "" , "iPhone" },
400
+ expectedOS : & OSInfo {"CPU iPhone OS 7_0_3 like Mac OS X" , "iPhone OS" , "7.0.3" },
401
401
},
402
402
{
403
403
title : "iPhone" ,
@@ -428,7 +428,7 @@ var uastrings = []struct {
428
428
title : "BlackBerry" ,
429
429
ua : "Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/6.0.0.141 Mobile Safari/534.1+" ,
430
430
expected : "Mozilla:5.0 Platform:BlackBerry OS:BlackBerry 9800 Localization:en Browser:BlackBerry-6.0.0.141 Engine:AppleWebKit-534.1+ Bot:false Mobile:true" ,
431
- expectedOS : & OSInfo {"BlackBerry 9800" , "BlackBerry" , "9800" , "en" , "BlackBerry" },
431
+ expectedOS : & OSInfo {"BlackBerry 9800" , "BlackBerry" , "9800" },
432
432
},
433
433
{
434
434
title : "BB10" ,
@@ -439,7 +439,7 @@ var uastrings = []struct {
439
439
title : "Ericsson" ,
440
440
ua : "Mozilla/5.0 (SymbianOS/9.4; U; Series60/5.0 Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) Version/3.0 Safari/525" ,
441
441
expected : "Mozilla:5.0 Platform:Symbian OS:SymbianOS/9.4 Browser:Symbian-3.0 Engine:AppleWebKit-525 Bot:false Mobile:true" ,
442
- expectedOS : & OSInfo {"SymbianOS/9.4" , "SymbianOS" , "9.4" , "" , "Symbian" },
442
+ expectedOS : & OSInfo {"SymbianOS/9.4" , "SymbianOS" , "9.4" },
443
443
},
444
444
{
445
445
title : "ChromeAndroid" ,
@@ -507,7 +507,7 @@ var uastrings = []struct {
507
507
title : "Dalvik - Asus:T00Q" ,
508
508
ua : "Dalvik/1.6.0 (Linux; U; Android 4.4.2; ASUS_T00Q Build/KVT49L)/CLDC-1.1" ,
509
509
expected : "Mozilla:5.0 Platform:Linux OS:Android 4.4.2 Bot:false Mobile:true" ,
510
- expectedOS : & OSInfo {"Android 4.4.2" , "Android" , "4.4.2" , "" , "Linux" },
510
+ expectedOS : & OSInfo {"Android 4.4.2" , "Android" , "4.4.2" },
511
511
},
512
512
{
513
513
title : "Dalvik - W2430" ,
0 commit comments