Comparing version 2.2.1 to 2.2.2
var list = require('./list'); | ||
var regex = new RegExp('(' + list.join('|') + ')', 'ig'); | ||
var regex = new RegExp('(' + list.join('|') + ')', 'i'); | ||
module.exports = function(userAgent) { | ||
regex.lastIndex = 0; | ||
return regex.test(userAgent); | ||
@@ -11,3 +10,3 @@ }; | ||
list = list.concat(additionalFilters); | ||
regex = new RegExp('(' + list.join('|') + ')', 'ig'); | ||
regex = new RegExp('(' + list.join('|') + ')', 'i'); | ||
} |
{ | ||
"name": "isbot", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "detects bots/crawlers/spiders via the user agent.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
663541
967