mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Merge pull request #424 from patrick-nurt/detect-huawei-p30
Detect Huawei P30
This commit is contained in:
commit
5230745280
@ -490,7 +490,7 @@
|
||||
], [MODEL, [VENDOR, 'HTC'], [TYPE, TABLET]], [
|
||||
|
||||
/d\/huawei([\w\s-]+)[;\)]/i,
|
||||
/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i // Huawei
|
||||
/(nexus\s6p|vog-l29|ane-lx1|eml-l29|ele-l29)/i // Huawei
|
||||
], [MODEL, [VENDOR, 'Huawei'], [TYPE, MOBILE]], [
|
||||
|
||||
/android.+(bah2?-a?[lw]\d{2})/i // Huawei MediaPad
|
||||
|
@ -1096,5 +1096,14 @@
|
||||
"model": "EML-L29",
|
||||
"type": "mobile"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"desc": "Huawei P30",
|
||||
"ua": "Mozilla/5.0 (Linux; Android 9; ELE-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36",
|
||||
"expect": {
|
||||
"vendor": "Huawei",
|
||||
"model": "ELE-L29",
|
||||
"type": "mobile"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user