fixed python 2.3 emoticon looping bug
This commit is contained in:
parent
a3e0d6afec
commit
f5139c288f
|
@ -1073,7 +1073,7 @@ class Interface:
|
||||||
for emoticon in keys: # travel thru emoticons list
|
for emoticon in keys: # travel thru emoticons list
|
||||||
emoticon_escaped = sre.escape(emoticon) # espace regexp metachars
|
emoticon_escaped = sre.escape(emoticon) # espace regexp metachars
|
||||||
emoticons_pattern += emoticon_escaped + '|' # | means or in regexp
|
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
|
# because emoticons match later (in the string) they need to be after
|
||||||
# basic matches that may occur earlier
|
# basic matches that may occur earlier
|
||||||
|
|
Loading…
Reference in New Issue