mirror of https://github.com/waku-org/nwaku.git
fix(wakunode2): fix message retention policy config validation regex
This commit is contained in:
parent
1d3943febb
commit
cf7e51a3f1
|
@ -493,7 +493,7 @@ proc validateDbUrl*(val: string): ConfResult[string] =
|
||||||
return err("invalid 'db url' option format: " & val)
|
return err("invalid 'db url' option format: " & val)
|
||||||
|
|
||||||
|
|
||||||
let StoreMessageRetentionPolicyRegex = re"^\w+:\w$"
|
let StoreMessageRetentionPolicyRegex = re"^\w+:\w+$"
|
||||||
|
|
||||||
proc validateStoreMessageRetentionPolicy*(val: string): ConfResult[string] =
|
proc validateStoreMessageRetentionPolicy*(val: string): ConfResult[string] =
|
||||||
let val = val.strip()
|
let val = val.strip()
|
||||||
|
|
Loading…
Reference in New Issue