Implement review suggestions

This commit is contained in:
Daniel 2021-03-10 17:19:51 +01:00
parent b60427c68b
commit 1178749747
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ func registerConfig() error {
config.UnitAnnotation: "seconds",
config.CategoryAnnotation: "General",
},
ValidationRegex: `^[1-9][0-9]{1,5}?$`,
ValidationRegex: `^[1-9][0-9]{1,5}$`,
})
if err != nil {
return err

View file

@ -166,7 +166,7 @@ The format is: "protocol://ip:port?parameter=value&parameter=value"
config.UnitAnnotation: "seconds",
config.CategoryAnnotation: "Servers",
},
ValidationRegex: `^[1-9][0-9]{1,5}?$`,
ValidationRegex: `^[1-9][0-9]{1,5}$`,
})
if err != nil {
return err