From 0d49b3e716c5eade1e6c4e19fe3fe70b82ccb00b Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 15 Jan 2022 19:39:51 +0100 Subject: [PATCH] fix regex --- envconf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envconf.go b/envconf.go index d5ad713..849a968 100644 --- a/envconf.go +++ b/envconf.go @@ -259,7 +259,7 @@ func (c *Config) Status() (ok bool) { } func cleanKey(key string) string { - expr := regexp.MustCompile("_+") + expr := regexp.MustCompile("__+") fn := func(r rune) rune { if (r >= '0' && r <= '9') || (r >= 'A' && r <= 'Z') || r == '_' { return r