You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
493 B
25 lines
493 B
import { getFirstMatch } from './utils';
|
|
|
|
export default [
|
|
{
|
|
test: [/windows phone/i],
|
|
describe(ua) {
|
|
const version = getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, ua);
|
|
return {
|
|
name: 'Windows Phone',
|
|
version
|
|
}
|
|
}
|
|
},
|
|
{
|
|
test: [/macintosh/i],
|
|
describe(ua) {
|
|
const version = getFirstMatch(/mac os x (\d+([_\s]\d+)*)/i, ua).replace(/[_\s]/g, '.');
|
|
return {
|
|
name: 'macOS',
|
|
version
|
|
}
|
|
}
|
|
}
|
|
]
|