This commit is contained in:
Jeremy Fincher 2003-10-20 22:24:08 +00:00
parent 4a8b627b2d
commit e1eb6cff8e

View File

@ -154,7 +154,7 @@ class Utilities(callbacks.Privmsg):
f = None f = None
try: try:
r = utils.perlReToPythonRe(regexp) 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: except ValueError, e:
try: try:
f = utils.perlReToReplacer(regexp) f = utils.perlReToReplacer(regexp)