update the comment

pull/310/head
Ricardo Rauber Pereira 5 years ago
parent 4d8c781369
commit 8e49696d02

@ -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;

Loading…
Cancel
Save