diff --git a/src/parser-browsers.js b/src/parser-browsers.js index 4de9509..0ac4696 100644 --- a/src/parser-browsers.js +++ b/src/parser-browsers.js @@ -590,13 +590,13 @@ const browsersList = [ { test: [/.*/i], describe(ua) { - /* Here we try to make sure that there are explicit details about the device - * in order to decide what regexp exactly we want to apply - * (as there is a specific decision based on that conclusion) - */ - const regexpWithoutDeviceSpec = /^(.*)\/(.*) /; - const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/; - const hasDeviceSpec = ua.search('\\(') !== -1; + /* Here we try to make sure that there are explicit details about the device + * in order to decide what regexp exactly we want to apply + * (as there is a specific decision based on that conclusion) + */ + const regexpWithoutDeviceSpec = /^(.*)\/(.*) /; + const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/; + const hasDeviceSpec = ua.search('\\(') !== -1; const regexp = hasDeviceSpec ? regexpWithoutDeviceSpec : regexpWithDeviceSpec; return { name: Utils.getFirstMatch(regexp, ua),