MCPcopy 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
17export const redactSensitivePath = (route: string, path: string): string =>
18 route === SQUAD_INVITE_PAGE
19 ? path.replace(/\/[^/]+\/?$/, '/[redacted]')
20 : path;

Callers 1

AppFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected