Skip to content

Commit 00efbf0

Browse files
authored
Merge pull request #238 from avaje/SentryMan-patch-4
Remove hyphens when reading env variables
2 parents 172dfef + 69d32c9 commit 00efbf0

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)