mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
update the comment
This commit is contained in:
parent
4d8c781369
commit
8e49696d02
@ -590,7 +590,10 @@ const browsersList = [
|
|||||||
{
|
{
|
||||||
test: [/.*/i],
|
test: [/.*/i],
|
||||||
describe(ua) {
|
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 regexpWithoutParenthesis = /^(.*)\/(.*) /;
|
||||||
const regexpWithParenthesis = /^(.*)\/(.*)[ \t]\((.*)/;
|
const regexpWithParenthesis = /^(.*)\/(.*)[ \t]\((.*)/;
|
||||||
const hasDeviceSpec = ua.search('\\(') !== -1;
|
const hasDeviceSpec = ua.search('\\(') !== -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user