From 8e49696d027e17a3054bd32ea12187a07918c490 Mon Sep 17 00:00:00 2001 From: Ricardo Rauber Pereira Date: Tue, 23 Apr 2019 10:13:52 +0100 Subject: [PATCH] update the comment --- src/parser-browsers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parser-browsers.js b/src/parser-browsers.js index 5c1a867..aa76643 100644 --- a/src/parser-browsers.js +++ b/src/parser-browsers.js @@ -590,7 +590,10 @@ const browsersList = [ { test: [/.*/i], describe(ua) { - // Define the regexp depending if the ua has device specifications + /* 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 regexpWithoutParenthesis = /^(.*)\/(.*) /; const regexpWithParenthesis = /^(.*)\/(.*)[ \t]\((.*)/; const hasDeviceSpec = ua.search('\\(') !== -1;