(model?: string)
| 150 | |
| 151 | // Check if a model name indicates a phone (not tablet) |
| 152 | function isKnownPhoneModel(model?: string): boolean { |
| 153 | if (!model) return false; |
| 154 | return KNOWN_PHONE_PATTERNS.some((pattern) => pattern.test(model)); |
| 155 | } |
| 156 | |
| 157 | const parse = (ua: string): UAParser.IResult => { |
| 158 | // Check cache first |