fixed python 2.3 emoticon looping bug

This commit is contained in:
Norman Rasmussen 2005-11-14 21:04:16 +00:00
parent a3e0d6afec
commit f5139c288f
1 changed files with 1 additions and 1 deletions

View File

@ -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