MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / normalizeReferrer

Function normalizeReferrer

freebuff/web/src/app/onboard/page.tsx:34–38  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

32import { logger } from '@/util/logger'
33
34function normalizeReferrer(raw: string | undefined): string | null {
35 if (!raw) return null
36 const trimmed = raw.trim().slice(0, 50)
37 return trimmed || null
38}
39
40interface PageProps {
41 searchParams?: Promise<{

Callers 1

OnboardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected