MCPcopy Create free account
hub / github.com/chhoumann/quickadd / normalizeSecretIdPart

Function normalizeSecretIdPart

src/utils/userScriptSecrets.ts:60–67  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

58}
59
60function normalizeSecretIdPart(value: string): string {
61 const normalized = value
62 .toLowerCase()
63 .replace(/[^a-z0-9]+/g, "-")
64 .replace(/^-+|-+$/g, "");
65
66 return normalized || "setting";
67}
68
69function hashSecretId(value: string): string {
70 let hash = 5381;

Callers 2

buildUserScriptSecretIdFunction · 0.85
buildAvailableSecretRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected