Added a comment about the emoticon regex
This commit is contained in:
parent
a433b2d58c
commit
fdb89e2ff8
|
@ -1062,6 +1062,8 @@ class Interface:
|
||||||
basic_pattern = links + mail + formatting
|
basic_pattern = links + mail + formatting
|
||||||
self.basic_pattern_re = sre.compile(basic_pattern, sre.IGNORECASE)
|
self.basic_pattern_re = sre.compile(basic_pattern, sre.IGNORECASE)
|
||||||
|
|
||||||
|
# When an emoticon is bordered by an alpha-numeric character it is NOT
|
||||||
|
# expanded. e.g., foo:) NO, foo :) YES, (brb) NO, (:)) YES, etc.
|
||||||
emoticons_pattern = '(?<!\w)(?:'
|
emoticons_pattern = '(?<!\w)(?:'
|
||||||
# sort keys by length so :qwe emot is checked before :q
|
# sort keys by length so :qwe emot is checked before :q
|
||||||
keys = self.emoticons.keys()
|
keys = self.emoticons.keys()
|
||||||
|
|
Loading…
Reference in New Issue