MCPcopy
hub / github.com/simstudioai/sim / isEnvVarReference

Function isEnvVarReference

packages/db/scripts/migrate-block-api-keys-to-byok.ts:241–243  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

239const ENV_VAR_PATTERN = /^\{\{([^}]+)\}\}$/
240
241function isEnvVarReference(value: string): boolean {
242 return ENV_VAR_PATTERN.test(value)
243}
244
245function extractEnvVarName(value: string): string | null {
246 const match = ENV_VAR_PATTERN.exec(value)

Callers 2

resolveKeyFunction · 0.70
processWorkspaceFunction · 0.70

Calls 1

testMethod · 0.80

Tested by

no test coverage detected