From a60996e666598ba5e2e8951d33093fbdb7ccafe8 Mon Sep 17 00:00:00 2001 From: Krish Mamtora Date: Wed, 3 Jul 2024 09:05:09 -0400 Subject: [PATCH] Update the expected rule template for the rule validator --- internal/validator/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/validator/user.go b/internal/validator/user.go index 57b3119d..2365ee61 100644 --- a/internal/validator/user.go +++ b/internal/validator/user.go @@ -212,7 +212,7 @@ func validateMediaPlaybackRate(mediaPlaybackRate float64) *locale.LocalizedError } func isValidFilterRules(filterEntryRules string, filterType string) *locale.LocalizedError { - // Valid Format: FieldName(RegEx)~FieldName(RegEx)~... + // Valid Format: FieldName=RegEx\nFieldName=RegEx... fieldNames := []string{"EntryTitle", "EntryURL", "EntryCommentsURL", "EntryContent", "EntryAuthor", "EntryTag"} rules := strings.Split(filterEntryRules, "\n")