Solved issue #1877 "-and" flag with multiple instances of the -contains option.

This commit is contained in:
Ricardo Ruiz 2024-05-10 00:13:30 +02:00
parent edff5f861c
commit 044bc64f0b

View file

@ -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