fix 'custom filter' object is not iterable

This commit is contained in:
Mikhail 2023-02-20 18:51:05 +06:00 committed by GitHub
parent 88baf0b582
commit bf06c6a6c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -325,6 +325,9 @@ class Text(Filter):
_pre_process_func = lambda s: str(s).lower()
else:
_pre_process_func = str
if not isinstance(self.equals, list):
self.equals = [self.equals]
# now check
if self.equals is not None: