mirror of
https://github.com/google/nomulus
synced 2026-02-09 06:20:29 +00:00
Replace uses of X.to(Upper|Lower)Case() with Ascii.to(Upper|Lower)Case(X)
Locales are weird. Even if all our character individually are just 0-9a-z_, different locales might still convert them differently to upper/lower cases... ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=193512312
This commit is contained in:
@@ -17,6 +17,7 @@ package google.registry.proxy;
|
||||
import static google.registry.config.YamlUtils.getConfigSettings;
|
||||
import static google.registry.util.ResourceUtils.readResourceUtf8;
|
||||
|
||||
import com.google.common.base.Ascii;
|
||||
import java.util.List;
|
||||
|
||||
/** The POJO that YAML config files are deserialized into. */
|
||||
@@ -120,7 +121,8 @@ public class ProxyConfig {
|
||||
String customYaml =
|
||||
readResourceUtf8(
|
||||
ProxyConfig.class,
|
||||
String.format(CUSTOM_CONFIG_FORMATTER, env.name().toLowerCase().replace("_", "-")));
|
||||
String.format(
|
||||
CUSTOM_CONFIG_FORMATTER, Ascii.toLowerCase(env.name()).replace("_", "-")));
|
||||
return getConfigSettings(defaultYaml, customYaml, ProxyConfig.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user