Skip to content

Commit

Permalink
Improve device detection: Lenovo
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Nov 21, 2024
1 parent a1d81c9 commit b4bc86a
Show file tree
Hide file tree
Showing 2 changed files with 1,043 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/main/ua-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@
], [MODEL, [VENDOR, LG], [TYPE, MOBILE]], [

// Lenovo
/(ideatab[-\w ]+)/i,
/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i
/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
], [MODEL, [VENDOR, LENOVO], [TYPE, TABLET]], [

// Nokia
Expand Down Expand Up @@ -701,7 +701,7 @@
/(hp) ([\w ]+\w)/i, // HP iPAQ
/(asus)-?(\w+)/i, // Asus
/(microsoft); (lumia[\w ]+)/i, // Microsoft Lumia
/(lenovo)[-_ ]?([-\w]+)/i, // Lenovo
/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, // Lenovo
/(jolla)/i, // Jolla
/(oppo) ?([\w ]+) bui/i // OPPO
], [VENDOR, MODEL, [TYPE, MOBILE]], [
Expand Down
Loading

0 comments on commit b4bc86a

Please sign in to comment.