mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Add YandexBot
to our list of crawlers
This commit is contained in:
parent
de99853dee
commit
2a4006fe0c
2 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ describe CrawlerDetection do
|
|||
expect(described_class.crawler?("facebookexternalhit/1.1 (+http(s)://www.facebook.com/externalhit_uatext.php)")).to eq(true)
|
||||
expect(described_class.crawler?("Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)")).to eq(true)
|
||||
expect(described_class.crawler?("Baiduspider+(+http://www.baidu.com/search/spider.htm)")).to eq(true)
|
||||
expect(described_class.crawler?("Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)")).to eq(true)
|
||||
end
|
||||
|
||||
it "returns false for non-crawler user agents" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue