Skip to content

Commit

Permalink
Solved issue #1877 "-and" flag with multiple instances of the -contai…
Browse files Browse the repository at this point in the history
…ns option.
  • Loading branch information
eigenric committed May 9, 2024
1 parent edff5f8 commit 044bc64
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jrnl/journals/Journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,16 @@ def excluded(tags):
and (
not contains
or (
any(
strict
and all(
substring in entry.title.casefold()
or substring in entry.body.casefold()
for substring in contains_lower
)
)
or (
not strict
and any(
substring in entry.title.casefold()
or substring in entry.body.casefold()
for substring in contains_lower
Expand Down

0 comments on commit 044bc64

Please sign in to comment.