mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
remove tabs
This commit is contained in:
parent
d0959a43c4
commit
2dcfca1388
@ -590,13 +590,13 @@ const browsersList = [
|
|||||||
{
|
{
|
||||||
test: [/.*/i],
|
test: [/.*/i],
|
||||||
describe(ua) {
|
describe(ua) {
|
||||||
/* Here we try to make sure that there are explicit details about the device
|
/* 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
|
* in order to decide what regexp exactly we want to apply
|
||||||
* (as there is a specific decision based on that conclusion)
|
* (as there is a specific decision based on that conclusion)
|
||||||
*/
|
*/
|
||||||
const regexpWithoutDeviceSpec = /^(.*)\/(.*) /;
|
const regexpWithoutDeviceSpec = /^(.*)\/(.*) /;
|
||||||
const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/;
|
const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/;
|
||||||
const hasDeviceSpec = ua.search('\\(') !== -1;
|
const hasDeviceSpec = ua.search('\\(') !== -1;
|
||||||
const regexp = hasDeviceSpec ? regexpWithoutDeviceSpec : regexpWithDeviceSpec;
|
const regexp = hasDeviceSpec ? regexpWithoutDeviceSpec : regexpWithDeviceSpec;
|
||||||
return {
|
return {
|
||||||
name: Utils.getFirstMatch(regexp, ua),
|
name: Utils.getFirstMatch(regexp, ua),
|
||||||
|
Loading…
Reference in New Issue
Block a user