Explorar el Código

Update the expected rule template for the rule validator

Krish Mamtora hace 1 año
padre
commit
a60996e666
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      internal/validator/user.go

+ 1 - 1
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")