Skip to content

Commit

Permalink
Add Facebook bot to testBot
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Dec 26, 2013
1 parent 1fad1b0 commit 89e46ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/express-useragent.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ var UserAgent = function() {

this.testBot = function testBot() {
var ua = this;
if(/googlebot|gurujibot|yandexbot|slurp|msnbot|bingbot/i.test(ua.Agent.source)) {
if(/googlebot|gurujibot|yandexbot|slurp|msnbot|bingbot|facebookexternalhit/i.test(ua.Agent.source)) {
ua.Agent.isBot = true;
}
};
Expand Down

0 comments on commit 89e46ff

Please sign in to comment.