From 17df589175ff1c4675b02a61439e93f657acae1e Mon Sep 17 00:00:00 2001 From: JJ Date: Fri, 19 Jul 2024 16:33:49 -0700 Subject: allow short flag regexes --- application_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application_context.go') 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"` } -- cgit v1.2.3-70-g09d2