MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hasSafeHeredocSubstitution

Function hasSafeHeredocSubstitution

src/tools/BashTool/bashSecurity.ts:581–583  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

579
580/** Detection-only check: does the command contain a safe heredoc substitution? */
581export function hasSafeHeredocSubstitution(command: string): boolean {
582 return stripSafeHeredocSubstitutions(command) !== null
583}
584
585function validateSafeCommandSubstitution(
586 context: ValidationContext,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected