Codebase list libhttp-browserdetect-perl / 8150f73
Merge pull request #69 from dougwilson/feature/win81 Add detection for Windows 8.1 Olaf Alders 10 years ago
2 changed file(s) with 40 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1818 win95 win98 winnt
1919 winme win32 win2k
2020 winxp win2k3 winvista
21 win7 win8 wince
22 winphone winphone7 winphone7_5
23 winphone8
21 win7 win8 win8_0
22 win8_1 wince winphone
23 winphone7 winphone7_5 winphone8
2424 );
2525
2626 # More precise Mac
843843 $tests->{WIN2K3} = ( index( $ua, "nt 5.2" ) != -1 );
844844 $tests->{WINVISTA} = ( index( $ua, "nt 6.0" ) != -1 );
845845 $tests->{WIN7} = ( index( $ua, "nt 6.1" ) != -1 );
846 $tests->{WIN8} = ( index( $ua, "nt 6.2" ) != -1 );
846 $tests->{WIN8_0} = ( index( $ua, "nt 6.2" ) != -1 );
847 $tests->{WIN8_1} = ( index( $ua, "nt 6.3" ) != -1 );
848 $tests->{WIN8} = ( $tests->{WIN8_0} || $tests->{WIN8_1} );
847849 $tests->{DOTNET} = ( index( $ua, ".net clr" ) != -1 );
848850
849851 $tests->{WINME} = ( index( $ua, "win 9x 4.90" ) != -1 ); # whatever
10551057 return 'Win2k3' if $self->win2k3;
10561058 return 'WinVista' if $self->winvista;
10571059 return 'Win7' if $self->win7;
1058 return 'Win8' if $self->win8;
1060 return 'Win8' if $self->win8_0;
1061 return 'Win8.1' if $self->win8_1;
10591062 return 'WinNT' if $self->winnt;
10601063 return 'Windows Phone' if $self->winphone;
10611064 return 'Win3x' if $self->win3x;
16471650 win32
16481651 winme win95 win98
16491652 winnt
1650 win2k winxp win2k3 winvista win7 win8
1653 win2k winxp win2k3 winvista win7
1654 win8
1655 win8_0 win8_1
16511656 wince
16521657 winphone
16531658 winphone7 winphone7_5 winphone8
16881693 compatibility with the L<HTTP::Headers::UserAgent> module.
16891694
16901695 Win95, Win98, WinNT, Win2K, WinXP, Win2k3, WinVista, Win7, Win8,
1691 Windows Phone, Mac, Mac OS X, iOS, Win3x, OS2, Unix, Linux,
1696 Win8.1, Windows Phone, Mac, Mac OS X, iOS, Win3x, OS2, Unix, Linux,
16921697 Firefox OS, Playstation 3 GameOS, Playstation Portable GameOS,
16931698 RIM Tablet OS
16941699
11011101 "trident",
11021102 "win32",
11031103 "win8",
1104 "win8_0",
11041105 "windows",
11051106 "winnt"
11061107 ],
11201121 "match" : [
11211122 "windows",
11221123 "win8",
1124 "win8_0",
11231125 "winnt",
11241126 "win32",
11251127 "trident",
11571159 "minor" : "0",
11581160 "no_match" : null,
11591161 "os_string" : "Win7",
1162 "other" : null,
1163 "version" : "11.0",
1164 "engine_major" : "7",
1165 "engine_minor" : "0",
1166 "engine_version" : "7.0",
1167 "engine_string" : "Trident"
1168 },
1169 "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko": {
1170 "browser_string": "MSIE",
1171 "major" : "11",
1172 "match" : [
1173 "windows",
1174 "win8",
1175 "win8_1",
1176 "winnt",
1177 "win32",
1178 "trident",
1179 "ie",
1180 "ie11",
1181 "ie55up",
1182 "ie5up",
1183 "ie4up"
1184 ],
1185 "minor" : "0",
1186 "no_match" : null,
1187 "os_string" : "Win8.1",
11601188 "other" : null,
11611189 "version" : "11.0",
11621190 "engine_major" : "7",