Update the expected rule template for the rule validator
This commit is contained in:
parent
a09ddbbaf4
commit
a60996e666
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ func validateMediaPlaybackRate(mediaPlaybackRate float64) *locale.LocalizedError
|
||||||
}
|
}
|
||||||
|
|
||||||
func isValidFilterRules(filterEntryRules string, filterType string) *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"}
|
fieldNames := []string{"EntryTitle", "EntryURL", "EntryCommentsURL", "EntryContent", "EntryAuthor", "EntryTag"}
|
||||||
|
|
||||||
rules := strings.Split(filterEntryRules, "\n")
|
rules := strings.Split(filterEntryRules, "\n")
|
||||||
|
|
Loading…
Reference in a new issue