mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Solved issue #1877 "-and" flag with multiple instances of the -contains option.
This commit is contained in:
parent
edff5f861c
commit
044bc64f0b
1 changed files with 10 additions and 1 deletions
|
@ -298,7 +298,16 @@ class Journal:
|
||||||
and (
|
and (
|
||||||
not contains
|
not contains
|
||||||
or (
|
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()
|
substring in entry.title.casefold()
|
||||||
or substring in entry.body.casefold()
|
or substring in entry.body.casefold()
|
||||||
for substring in contains_lower
|
for substring in contains_lower
|
||||||
|
|
Loading…
Add table
Reference in a new issue