-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Sharp devices (e.g., SH-L02) are misjudged as Huawei devices as following:
This seems to be caused by the wrong RegExp that cannot distinguish sh-xxx and sht-xxx, written in
Line 388 in 03c9152
| /\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b/i |
console.log('sh-l02'.match( /\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b/i))
// ["sh-l02", "sh-l02", index: 0, input: "sh-l02", groups: undefined]Metadata
Metadata
Assignees
Labels
No labels
