MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / slugifyOAuthKey

Function slugifyOAuthKey

packages/core/sdk/src/oauth-service.ts:309–313  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

307 (issuerIsOriginOnly(inputIssuer) && issuerOrigin(rowIssuer) === inputIssuer));
308
309const slugifyOAuthKey = (value: string): string =>
310 value
311 .toLowerCase()
312 .replace(/[^a-z0-9]+/g, "-")
313 .replace(/^-+|-+$/g, "");
314
315const shortStableHash = (value: string): string => {
316 let hash = 0x811c9dc5;

Callers 1

dcrClientSlugFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected