fix: get config key to lower

This commit is contained in:
banshan
2024-11-30 18:11:52 +08:00
committed by GitHub
parent 6eef325fa6
commit 49f0cdb472

View File

@@ -54,6 +54,7 @@ func (config *Config) Get(key string) (v *Config) {
if config.propsMap == nil {
config.propsMap = make(map[string]*Config)
}
key = strings.ToLower(key)
if v, ok := config.propsMap[key]; ok {
return v
} else {