mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
feat: add date-based entry filtering rules
This commit is contained in:
parent
7346d751cc
commit
bca9bea676
3 changed files with 57 additions and 4 deletions
|
@ -219,7 +219,7 @@ func validateMediaPlaybackRate(mediaPlaybackRate float64) *locale.LocalizedError
|
|||
|
||||
func isValidFilterRules(filterEntryRules string, filterType string) *locale.LocalizedError {
|
||||
// Valid Format: FieldName=RegEx\nFieldName=RegEx...
|
||||
fieldNames := []string{"EntryTitle", "EntryURL", "EntryCommentsURL", "EntryContent", "EntryAuthor", "EntryTag"}
|
||||
fieldNames := []string{"EntryTitle", "EntryURL", "EntryCommentsURL", "EntryContent", "EntryAuthor", "EntryTag", "EntryDate"}
|
||||
|
||||
rules := strings.Split(filterEntryRules, "\n")
|
||||
for i, rule := range rules {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue