This commit is contained in:
Jeremy Fincher 2003-10-20 22:24:08 +00:00
parent 4a8b627b2d
commit e1eb6cff8e
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class Utilities(callbacks.Privmsg):
f = None
try:
r = utils.perlReToPythonRe(regexp)
f = lambda s: ' '.join(r.findall(text))
f = lambda s: r.search(s) and r.search(s).group(0) or ''
except ValueError, e:
try:
f = utils.perlReToReplacer(regexp)