node-ajax-seo
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -9,3 +9,3 @@ | ||
var fragment = req.query._escaped_fragment_; | ||
var crawlers=['facebookexternalhit','Twitterbot','Pinterest']; | ||
var crawlers = ['FacebookExternalHit', 'Twitterbot', 'Pinterest', 'Baiduspider', 'LinkedInBot']; | ||
@@ -18,3 +18,3 @@ // google crawler checking | ||
crawlers.forEach(function(c){ | ||
var patt = new RegExp(c); | ||
var patt = new RegExp(c,"i"); | ||
isCrawler = isCrawler || (patt.test(req.headers['user-agent'])) ; | ||
@@ -21,0 +21,0 @@ }); |
{ | ||
"name": "node-ajax-seo", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "It deals with the most popular crawlers, redirecting them to static directory and serving fresh pages to human users.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7846