1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Catch up with last browsers in 1.9 version

This commit is contained in:
Denis Demchenko
2018-07-09 21:26:43 +03:00
parent c89a8d157e
commit 8676817177
3 changed files with 108 additions and 6 deletions

View File

@@ -74,13 +74,17 @@ export default [
/* WebOS */
{
test: [/(web|hpw)os/i],
test: [/(web|hpw)[o0]s/i],
describe(ua) {
const version = getFirstMatch(/(?:web|hpw)os\/(\d+(\.\d+)*)/i, ua);
return {
const version = getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, ua);
const os = {
name: 'WebOS',
version,
};
if (version && version.length) {
os.version = version;
}
return os;
},
},