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

Function slugifyOAuthKey

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

Source from the content-addressed store, hash-verified

260 (issuerIsOriginOnly(inputIssuer) && issuerOrigin(rowIssuer) === inputIssuer));
261
262const slugifyOAuthKey = (value: string): string =>
263 value
264 .toLowerCase()
265 .replace(/[^a-z0-9]+/g, "-")
266 .replace(/^-+|-+$/g, "");
267
268const shortStableHash = (value: string): string => {
269 let hash = 0x811c9dc5;

Callers 1

dcrClientSlugFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected