Skip to content

Commit

Permalink
Added XoviBot, version 0.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
saschagehlich committed Dec 8, 2014
1 parent e33c321 commit 923c7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Middleware.prototype.request = function (req, res, next) {
var shouldTakeSnapshot = this.options.routes(req);
if (!shouldTakeSnapshot) return next();

var botRegex = /(google|yahoo|bing|baidu|jeeves|facebook|twitter|linkedin)/i;
var botRegex = /(google|yahoo|bing|baidu|jeeves|facebook|twitter|linkedin|xovibot)/i;
var isBot = botRegex.test(req.headers['user-agent']);
if (!isBot) return next();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seo",
"version": "0.0.12",
"version": "0.0.13",
"description": "A connect middleware that serves html snapshots of single page apps",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 923c7a3

Please sign in to comment.