add applebot & bingbot to seo user-agent detection

This commit is contained in:
Mononaut 2023-03-08 01:11:54 -06:00
parent a874cdfb56
commit 477f3bd70a
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -315,5 +315,5 @@ function capitalize(str) {
} }
function isSearchCrawler(useragent: string): boolean { function isSearchCrawler(useragent: string): boolean {
return /googlebot/i.test(useragent); return /googlebot|applebot|bingbot/i.test(useragent);
} }