nacos config

This commit is contained in:
eson
2023-09-21 18:12:22 +08:00
parent b5cdaab24c
commit 11cdcefa4c
7 changed files with 105 additions and 18 deletions

View File

@@ -57,7 +57,7 @@ func hasInvalidPatterns(key string) bool {
return false
}
var checkModuleRe = regexp.MustCompile("[^\\.a-zA-Z_-]")
var checkModuleRe = regexp.MustCompile("[^\\.a-zA-Z_\\-0-9]")
// CheckModuleQuery 检查模块的json查询的格式
func CheckModuleQuery(moduleQuery string) bool {