1
0
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:
Denis Demchenko 2019-03-06 14:27:35 +02:00
parent 5873e24c76
commit 134ef3c186
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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,