From a644ca6fa8f6aa3fd4fe64f6458e456f2b5bc496 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 8 Sep 2005 10:31:19 +0000 Subject: [PATCH] [multani] fix pattern for emoticon so we specify start and end --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index cc561e402..a16717220 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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,