MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / readContextRoute

Function readContextRoute

packages/node/src/frameAudit.ts:161–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159export const ZR_DEBUG_CODE_PERF_DIFF_PATH = 0x0601;
160
161function readContextRoute(): string | null {
162 const g = globalThis as {
163 __reziFrameAuditContext?: () => Readonly<{ route?: unknown }>;
164 };
165 if (typeof g.__reziFrameAuditContext !== "function") return null;
166 try {
167 const ctx = g.__reziFrameAuditContext();
168 const route = ctx.route;
169 return typeof route === "string" && route.length > 0 ? route : null;
170 } catch {
171 return null;
172 }
173}
174
175function sanitizeFileToken(value: string): string {
176 return value.replace(/[^a-zA-Z0-9._-]/g, "_");

Callers 1

maybeDumpDrawlistBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected