Fix bugs with Utils

pull/305/head
Denis Demchenko 5 years ago
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…
Cancel
Save