mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Make Filters.regex work on message captions too
This commit is contained in:
parent
07276e31b9
commit
1d8fd0b836
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ class Filters:
|
|||
"""
|
||||
|
||||
def f(_, m):
|
||||
m.matches = [i for i in _.p.finditer(m.text or "")]
|
||||
m.matches = [i for i in _.p.finditer(m.text or m.caption or "")]
|
||||
return bool(m.matches)
|
||||
|
||||
return create("Regex", f, p=re.compile(pattern, flags))
|
||||
|
|
|
|||
Loading…
Reference in a new issue