mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix Filters.regex failing in case the value is None
This commit is contained in:
parent
22eb42e1f3
commit
5b94c340c0
1 changed files with 2 additions and 1 deletions
|
|
@ -323,7 +323,8 @@ class Filters:
|
|||
else:
|
||||
raise ValueError("Regex filter doesn't work with {}".format(type(update)))
|
||||
|
||||
update.matches = list(flt.p.finditer(value)) or None
|
||||
if value:
|
||||
update.matches = list(flt.p.finditer(value)) or None
|
||||
|
||||
return bool(update.matches)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue