mirror of https://gitlab.com/bashrc2/epicyon
Comments
parent
d39dfa3f47
commit
6611702ee1
|
@ -123,8 +123,10 @@ def addEmoji(baseDir: str,wordStr: str,httpPrefix: str,domain: str,replaceEmoji:
|
||||||
return False
|
return False
|
||||||
if replaceEmoji.get(wordStr):
|
if replaceEmoji.get(wordStr):
|
||||||
return True
|
return True
|
||||||
|
# remove leading and trailing : characters
|
||||||
emoji=wordStr[1:]
|
emoji=wordStr[1:]
|
||||||
emoji=emoji[:-1]
|
emoji=emoji[:-1]
|
||||||
|
# is the text of the emoji valid?
|
||||||
if not validHashTag(emoji):
|
if not validHashTag(emoji):
|
||||||
return False
|
return False
|
||||||
if not emojiDict.get(emoji):
|
if not emojiDict.get(emoji):
|
||||||
|
|
Loading…
Reference in New Issue