MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / extractSafeCatHeredoc

Function extractSafeCatHeredoc

source code/utils/bash/ast.ts:1723–1777  ·  view source on GitHub ↗

* Check if a command_substitution node is exactly `$(cat <<'DELIM'...DELIM)` * and return the heredoc body if so. Any deviation (extra args to cat, * unquoted delimiter, additional commands) returns null. * * tree-sitter structure: * command_substitution * $( * redirected_statement

(subNode: Node)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

walkStringFunction · 0.85

Calls 1

walkHeredocRedirectFunction · 0.85

Tested by

no test coverage detected