the module is sre not re

This commit is contained in:
Nikos Kouremenos 2005-10-04 12:35:47 +00:00
parent c6b05312d9
commit bf3319d948

View file

@ -28,7 +28,7 @@ import cell_renderer_image
import gtkgui_helpers
import history_window
import tooltips
import re
import sre
from gajim import Contact
from common import gajim
@ -930,7 +930,7 @@ current room topic.') % command, room_jid)
words = gajim.config.get('muc_highlight_words') + " " + nick
for word in words.split():
if re.search(r'\b(' + word + r')+\b', text, re.IGNORECASE | re.UNICODE):
if sre.search(r'\b(' + word + r')+\b', text, sre.IGNORECASE | sre.UNICODE):
return True
return False