in java/com/google/cloud/deploymentmanager/autogen/soy/Preprocessor.java [121:137]
public boolean apply(String trimmedLine) {
// Removes all non-print commands. If the result is an empty string, then return true.
Matcher m = SOY_COMMAND_REGEX.matcher(trimmedLine);
StringBuffer sb = new StringBuffer();
while (m.find()) {
if (!SOY_COMMAND_BLACKLIST_REGEX.matcher(m.group(1)).matches()) {
m.appendReplacement(sb, "");
} else {
m.appendReplacement(sb, Matcher.quoteReplacement(m.group()));
}
if (sb.length() > 0) {
return false;
}
}
m.appendTail(sb);
return sb.length() == 0;
}