diff --git a/src/parser-browsers.js b/src/parser-browsers.js index 0ac4696..53d99c7 100644 --- a/src/parser-browsers.js +++ b/src/parser-browsers.js @@ -597,7 +597,7 @@ const browsersList = [ const regexpWithoutDeviceSpec = /^(.*)\/(.*) /; const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/; const hasDeviceSpec = ua.search('\\(') !== -1; - const regexp = hasDeviceSpec ? regexpWithoutDeviceSpec : regexpWithDeviceSpec; + const regexp = hasDeviceSpec ? regexpWithDeviceSpec : regexpWithoutDeviceSpec; return { name: Utils.getFirstMatch(regexp, ua), version: Utils.getSecondMatch(regexp, ua),