Update the expected rule template for the rule validator

This commit is contained in:
Krish Mamtora 2024-07-03 09:05:09 -04:00 committed by Frédéric Guillot
parent a09ddbbaf4
commit a60996e666

View file

@ -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")