Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
72
export
function
isBot(userAgent: string) {
73
return
!!getBot(userAgent);
74
}
75
76
const
regexBadBots =
new
RegExp([...botList].join(
'|'
),
'i'
);
77
Callers
5
rewrite
Function · 0.90
getBot.test.ts
File · 0.90
threadGetServerSideProps
Function · 0.50
topicGetServerSideProps
Function · 0.50
channelGetServerSideProps
Function · 0.50
Calls
1
getBot
Function · 0.85
Tested by
no test coverage detected