replace "MISSING:" with "MISSING-" to avoid MalformedUrlException when digesting/diffing app with undefined variables (during build time) in appbase/latest.
This commit is contained in:
@@ -1147,7 +1147,7 @@ public class Application
|
||||
Matcher matcher = ENV_VAR_PATTERN.matcher(text);
|
||||
while (matcher.find()) {
|
||||
String varName = matcher.group(1), varValue = System.getenv(varName);
|
||||
String repValue = varValue == null ? "MISSING:"+varName : varValue;
|
||||
String repValue = varValue == null ? "MISSING-"+varName : varValue;
|
||||
matcher.appendReplacement(sb, Matcher.quoteReplacement(repValue));
|
||||
}
|
||||
matcher.appendTail(sb);
|
||||
|
||||
Reference in New Issue
Block a user