Skip to content

Commit

Permalink
Merge 9f341ff into 06b4deb
Browse files Browse the repository at this point in the history
  • Loading branch information
humingcheng committed Apr 30, 2020
2 parents 06b4deb + 9f341ff commit 417064b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/validate/instance.go
Expand Up @@ -11,10 +11,10 @@ const (
// custom validate rules
// please use different tag names from third party tags
var customRules = []*RegexValidateRule{
NewRule(key, commonNameRegexString, &Option{Min: 1, Max: 1024}), //2K
NewRule(key, commonNameRegexString, &Option{Min: 1, Max: 1024}), //1K
NewRule("commonName", commonNameRegexString, &Option{Min: 1, Max: 256}),
NewRule("valueType", `^(ini|json|text|yaml|properties){0,1}$`, nil),
NewRule("kvStatus", `^(enabled|disabled){0,1}$`, nil),
NewRule("valueType", `^$|^(ini|json|text|yaml|properties)$`, nil),
NewRule("kvStatus", `^$|^(enabled|disabled)$`, nil),
NewRule("value", asciiRegexString, &Option{Max: 2097152}), //ASCII, 2M
NewRule("lableKV", commonNameRegexString, &Option{Max: 32}),
NewRule("check", asciiRegexString, &Option{Max: 1048576}), //ASCII, 1M
Expand Down

0 comments on commit 417064b

Please sign in to comment.