the module is sre not re
This commit is contained in:
parent
c6b05312d9
commit
bf3319d948
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue