main2
Bob Mottram 2019-09-23 12:11:13 +01:00
parent d39dfa3f47
commit 6611702ee1
1 changed files with 2 additions and 0 deletions

View File

@ -123,8 +123,10 @@ def addEmoji(baseDir: str,wordStr: str,httpPrefix: str,domain: str,replaceEmoji:
return False
if replaceEmoji.get(wordStr):
return True
# remove leading and trailing : characters
emoji=wordStr[1:]
emoji=emoji[:-1]
# is the text of the emoji valid?
if not validHashTag(emoji):
return False
if not emojiDict.get(emoji):