hasSafeHeredocSubstitution function

bool hasSafeHeredocSubstitution(
  1. String command
)

Check if a command contains a safe heredoc-in-substitution pattern.

Implementation

bool hasSafeHeredocSubstitution(String command) {
  return stripSafeHeredocSubstitutions(command) != null;
}