fix regex
This commit is contained in:
parent
f27c08ef84
commit
0d49b3e716
@ -259,7 +259,7 @@ func (c *Config) Status() (ok bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cleanKey(key string) string {
|
func cleanKey(key string) string {
|
||||||
expr := regexp.MustCompile("_+")
|
expr := regexp.MustCompile("__+")
|
||||||
fn := func(r rune) rune {
|
fn := func(r rune) rune {
|
||||||
if (r >= '0' && r <= '9') || (r >= 'A' && r <= 'Z') || r == '_' {
|
if (r >= '0' && r <= '9') || (r >= 'A' && r <= 'Z') || r == '_' {
|
||||||
return r
|
return r
|
||||||
|
Loading…
Reference in New Issue
Block a user