mirror of https://github.com/Mikaela/Limnoria.git
Fixed re command.
This commit is contained in:
parent
bd8de87438
commit
fd43eeafb9
|
@ -81,7 +81,7 @@ class Utilities(callbacks.Privmsg):
|
||||||
Returns all matches to <regexp> (in the form /regexp/flags) in text.
|
Returns all matches to <regexp> (in the form /regexp/flags) in text.
|
||||||
"""
|
"""
|
||||||
(regexp, text) = privmsgs.getArgs(args, needed=2)
|
(regexp, text) = privmsgs.getArgs(args, needed=2)
|
||||||
(_, regexp, flags) = re.split('/')
|
(_, regexp, flags) = regexp.split('/')
|
||||||
flag = 0
|
flag = 0
|
||||||
for c in flags:
|
for c in flags:
|
||||||
flag &= getattr(re, c.upper())
|
flag &= getattr(re, c.upper())
|
||||||
|
|
Loading…
Reference in New Issue