Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ redactSensitivePath
Function
redactSensitivePath
packages/webapp/lib/sensitivePages.ts:17–20 ·
view source on GitHub ↗
(route: string, path: string)
Source
from the content-addressed store, hash-verified
15
SENSITIVE_PAGES.includes(pathname);
16
17
export
const
redactSensitivePath = (route: string, path: string): string =>
18
route === SQUAD_INVITE_PAGE
19
? path.replace(/\/[^/]+\/?$/,
'/[redacted]'
)
20
: path;
Callers
1
App
Function · 0.90
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected