Fix PocketPC mistakenly identified as PowerPC

This commit is contained in:
Faisal Salman 2013-04-04 14:35:02 +07:00
parent dc20c12b63
commit 8d439d26b8
3 changed files with 13 additions and 1 deletions

View File

@ -285,6 +285,10 @@
/((?:i[346]|x)86)[;\)]/i // IA32 /((?:i[346]|x)86)[;\)]/i // IA32
], [[ARCHITECTURE, 'ia32']], [ ], [[ARCHITECTURE, 'ia32']], [
// PocketPC mistakenly identified as PowerPC
/windows\s(ce|mobile);\sppc;/i
], [[ARCHITECTURE, 'arm']], [
/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i // PowerPC /((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i // PowerPC
], [[ARCHITECTURE, /ower/, '', util.lowerize]], [ ], [[ARCHITECTURE, /ower/, '', util.lowerize]], [

File diff suppressed because one or more lines are too long

View File

@ -47,6 +47,14 @@
"architecture" : "arm" "architecture" : "arm"
} }
}, },
{
"desc" : "Pocket PC",
"ua" : "Opera/9.7 (Windows Mobile; PPC; Opera Mobi/35166; U; en) Presto/2.2.1",
"expect" :
{
"architecture" : "arm"
}
},
{ {
"desc" : "Mac PowerPC", "desc" : "Mac PowerPC",
"ua" : "Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)", "ua" : "Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)",