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

Function truncateSecretIdPart

src/utils/userScriptSecrets.ts:78–81  ·  view source on GitHub ↗
(value: string, maxLength: number)

Source from the content-addressed store, hash-verified

76}
77
78function truncateSecretIdPart(value: string, maxLength: number): string {
79 if (value.length <= maxLength) return value;
80 return value.slice(0, maxLength).replace(/-+$/g, "") || "setting";
81}
82
83function getSecretSettingId(
84 settingName: string,

Callers 1

fitSecretIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected