From f5139c288f8a469a2b6d222f82227eff15169938 Mon Sep 17 00:00:00 2001 From: Norman Rasmussen Date: Mon, 14 Nov 2005 21:04:16 +0000 Subject: [PATCH] fixed python 2.3 emoticon looping bug --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 27eb49efa..f7f60e74d 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1073,7 +1073,7 @@ class Interface: for emoticon in keys: # travel thru emoticons list emoticon_escaped = sre.escape(emoticon) # espace regexp metachars emoticons_pattern += emoticon_escaped + '|' # | means or in regexp - emoticons_pattern += ')(?!\w)|' + emoticons_pattern = emoticons_pattern[:-1] + ')(?!\w)' # because emoticons match later (in the string) they need to be after # basic matches that may occur earlier