MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / isKnownPhoneModel

Function isKnownPhoneModel

packages/common/server/parser-user-agent.ts:152–155  ·  view source on GitHub ↗
(model?: string)

Source from the content-addressed store, hash-verified

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

Callers 1

getDeviceFunction · 0.85

Calls 1

someMethod · 0.45

Tested by

no test coverage detected