aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJJ2024-07-19 23:33:49 +0000
committerJJ2024-07-19 23:33:49 +0000
commit17df589175ff1c4675b02a61439e93f657acae1e (patch)
treef2570f3b9ea23a7ba66aa12519a697d4a94f033a
parentc7f35f40cfacdba6282cfadcd0a366a4331bb641 (diff)
allow short flag regexes
-rw-r--r--application_context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/application_context.go b/application_context.go
index 5db8843..c635dc9 100644
--- a/application_context.go
+++ b/application_context.go
@@ -24,7 +24,7 @@ import (
type Config struct {
ServerAddress string `json:"server_address" binding:"required,ip|cidr" bson:"server_address"`
- FlagRegex string `json:"flag_regex" binding:"required,min=8" bson:"flag_regex"`
+ FlagRegex string `json:"flag_regex" binding:"required,min=1" bson:"flag_regex"`
AuthRequired bool `json:"auth_required" bson:"auth_required"`
}