forked from indymedia/epicyon
Handle emoji with trailing chatacters
parent
7dd794b531
commit
b8da814892
|
@ -250,7 +250,10 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
continue
|
continue
|
||||||
if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags):
|
if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags):
|
||||||
continue
|
continue
|
||||||
if len(wordStr)>2 and wordStr.startswith(':') and wordStr.endswith(':') and not emojiDict:
|
if len(wordStr)>2:
|
||||||
|
if wordStr.startswith(':') and ':' in wordStr[1:] and not emojiDict:
|
||||||
|
if not wordStr.endswith(':'):
|
||||||
|
wordStr=':'+wordStr[1:].split(':')[0]+':'
|
||||||
print('Loading emoji lookup')
|
print('Loading emoji lookup')
|
||||||
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
|
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
|
||||||
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
|
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
|
||||||
|
|
Loading…
Reference in New Issue