From d0959a43c46cf828d93c724b9c3bd6f65042c1fd Mon Sep 17 00:00:00 2001 From: Ricardo Rauber Pereira Date: Tue, 23 Apr 2019 10:15:02 +0100 Subject: [PATCH] update the constant names --- src/parser-browsers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser-browsers.js b/src/parser-browsers.js index aa76643..4de9509 100644 --- a/src/parser-browsers.js +++ b/src/parser-browsers.js @@ -594,10 +594,10 @@ const browsersList = [ * in order to decide what regexp exactly we want to apply * (as there is a specific decision based on that conclusion) */ - const regexpWithoutParenthesis = /^(.*)\/(.*) /; - const regexpWithParenthesis = /^(.*)\/(.*)[ \t]\((.*)/; + const regexpWithoutDeviceSpec = /^(.*)\/(.*) /; + const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/; const hasDeviceSpec = ua.search('\\(') !== -1; - const regexp = hasDeviceSpec ? regexpWithoutParenthesis : regexpWithParenthesis; + const regexp = hasDeviceSpec ? regexpWithoutDeviceSpec : regexpWithDeviceSpec; return { name: Utils.getFirstMatch(regexp, ua), version: Utils.getSecondMatch(regexp, ua),