fix(wakunode2): fix message retention policy config validation regex

This commit is contained in:
Lorenzo Delgado 2022-11-02 17:38:24 +01:00 committed by GitHub
parent 1d3943febb
commit cf7e51a3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ proc validateDbUrl*(val: string): ConfResult[string] =
return err("invalid 'db url' option format: " & val)
let StoreMessageRetentionPolicyRegex = re"^\w+:\w$"
let StoreMessageRetentionPolicyRegex = re"^\w+:\w+$"
proc validateStoreMessageRetentionPolicy*(val: string): ConfResult[string] =
let val = val.strip()