aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Krish Mamtora <privat.mamtora@gmail.com> 2024-07-03 09:05:09 -0400
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-07-04 13:07:40 -0700
commita60996e666598ba5e2e8951d33093fbdb7ccafe8 (patch)
tree21db73cade56961d61b3e7bc97c1d353d3610799
parenta09ddbbaf4dbda24aaa7da45d7de7785c1f6cb3e (diff)
downloadv2-a60996e666598ba5e2e8951d33093fbdb7ccafe8.tar.gz
v2-a60996e666598ba5e2e8951d33093fbdb7ccafe8.tar.zst
v2-a60996e666598ba5e2e8951d33093fbdb7ccafe8.zip
Update the expected rule template for the rule validator
-rw-r--r--internal/validator/user.go2
1 files changed, 1 insertions, 1 deletions
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")