[multani] fix pattern for emoticon so we specify start and end

This commit is contained in:
Nikos Kouremenos 2005-09-08 10:31:19 +00:00
parent 7016af459f
commit a644ca6fa8
1 changed files with 1 additions and 1 deletions

View File

@ -921,7 +921,7 @@ class Interface:
emoticons_pattern = ''
for emoticon in self.emoticons: # travel thru emoticons list
emoticon_escaped = sre.escape(emoticon) # espace regexp metachars
emoticons_pattern += emoticon_escaped + '|'# | means or in regexp
emoticons_pattern += '^' + emoticon_escaped + '$|'# | means or in regexp
emot_and_basic_pattern = emoticons_pattern + basic_pattern
self.emot_and_basic_re = sre.compile(emot_and_basic_pattern,