Merge branch '7.0.x'

This commit is contained in:
Josh Cummings 2026-04-15 15:05:04 -06:00
commit 83ba30d138
No known key found for this signature in database
GPG Key ID: 869B37A20E876129
3 changed files with 6 additions and 6 deletions

View File

@ -90,8 +90,8 @@ final class HtmlTemplates {
String render() {
String template = this.template;
for (String key : this.values.keySet()) {
String pattern = Pattern.quote("{{" + key + "}}");
template = template.replaceAll(pattern, this.values.get(key));
String pattern = "{{" + key + "}}";
template = template.replace(pattern, this.values.get(key));
}
String unusedPlaceholders = Pattern.compile("\\{\\{([a-zA-Z0-9]+)}}")

View File

@ -87,8 +87,8 @@ final class HtmlTemplates {
String render() {
String template = this.template;
for (String key : this.values.keySet()) {
String pattern = Pattern.quote("{{" + key + "}}");
template = template.replaceAll(pattern, this.values.get(key));
String pattern = "{{" + key + "}}";
template = template.replace(pattern, this.values.get(key));
}
String unusedPlaceholders = Pattern.compile("\\{\\{([a-zA-Z0-9]+)}}")

View File

@ -89,8 +89,8 @@ final class HtmlTemplates {
String render() {
String template = this.template;
for (String key : this.values.keySet()) {
String pattern = Pattern.quote("{{" + key + "}}");
template = template.replaceAll(pattern, this.values.get(key));
String pattern = "{{" + key + "}}";
template = template.replace(pattern, this.values.get(key));
}
String unusedPlaceholders = Pattern.compile("\\{\\{([a-zA-Z0-9]+)}}")