Skip to content

Commit b4a93c1

Browse files
authored
Remove hyphens when reading env variables
1 parent 13c2e30 commit b4a93c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avaje-config/src/main/java/io/avaje/config/CoreConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ void fireOnChange(String value) {
488488
}
489489

490490
static String toEnvKey(String key) {
491-
return key.replace('.', '_').toUpperCase();
491+
return key.replace('.', '_').replace("-", "").toUpperCase();
492492
}
493493

494494
private static class ModifyAwareProperties {

0 commit comments

Comments
 (0)