DBZ-3760 fix regexp identifying env vars

This commit is contained in:
Ismail Simsek 2021-08-18 18:48:02 +02:00 committed by Jiri Pechanec
parent 76cd5fe25d
commit 62fc087f30

View File

@ -154,7 +154,7 @@ else if (beans.size() > 1) {
private void configToProperties(Config config, Properties props, String oldPrefix, String newPrefix) {
for (String name : config.getPropertyNames()) {
String updatedPropertyName = null;
if (SHELL_PROPERTY_NAME_PATTERN.asPredicate().test(name)) {
if (SHELL_PROPERTY_NAME_PATTERN.matcher(name).matches()) {
updatedPropertyName = name.replace("_", ".").toLowerCase();
}
if (updatedPropertyName != null && updatedPropertyName.startsWith(oldPrefix)) {