MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / isBot

Function isBot

apps/web/utilities/getBot.ts:72–74  ·  view source on GitHub ↗
(userAgent: string)

Source from the content-addressed store, hash-verified

70}
71
72export function isBot(userAgent: string) {
73 return !!getBot(userAgent);
74}
75
76const regexBadBots = new RegExp([...botList].join('|'), 'i');
77

Callers 5

rewriteFunction · 0.90
getBot.test.tsFile · 0.90
threadGetServerSidePropsFunction · 0.50
topicGetServerSidePropsFunction · 0.50

Calls 1

getBotFunction · 0.85

Tested by

no test coverage detected