mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Fix bugs with Utils
This commit is contained in:
parent
5873e24c76
commit
134ef3c186
@ -559,7 +559,7 @@ const browsersList = [
|
|||||||
const browser = {
|
const browser = {
|
||||||
name: 'PlayStation 4',
|
name: 'PlayStation 4',
|
||||||
};
|
};
|
||||||
const version = getFirstMatch(commonVersionIdentifier, ua);
|
const version = Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||||
|
|
||||||
if (version) {
|
if (version) {
|
||||||
browser.version = version;
|
browser.version = version;
|
||||||
|
@ -155,7 +155,7 @@ export default [
|
|||||||
{
|
{
|
||||||
test: [/PlayStation 4/],
|
test: [/PlayStation 4/],
|
||||||
describe(ua) {
|
describe(ua) {
|
||||||
const version = getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, ua);
|
const version = Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, ua);
|
||||||
return {
|
return {
|
||||||
name: 'PlayStation 4',
|
name: 'PlayStation 4',
|
||||||
version,
|
version,
|
||||||
|
Loading…
Reference in New Issue
Block a user