mirror of https://gitlab.com/bashrc2/epicyon
No second colon
parent
ffd290b681
commit
9ad5b34002
|
@ -311,10 +311,6 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
if ':' in wordStr:
|
if ':' in wordStr:
|
||||||
print('TAG: emoji located - '+wordStr)
|
print('TAG: emoji located - '+wordStr)
|
||||||
wordStr2=wordStr.split(':')[1]
|
wordStr2=wordStr.split(':')[1]
|
||||||
print('TAG: wordStr2a - '+wordStr2)
|
|
||||||
if ':' in wordStr2:
|
|
||||||
wordStr2=wordStr2.split(':')[0]
|
|
||||||
print('TAG: wordStr2b - '+wordStr2)
|
|
||||||
if not emojiDict:
|
if not emojiDict:
|
||||||
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'):
|
||||||
|
|
|
@ -1637,10 +1637,7 @@ def addEmojiToDisplayName(baseDir: str,httpPrefix: str, \
|
||||||
|
|
||||||
# remove any stray emoji
|
# remove any stray emoji
|
||||||
while ':' in displayName:
|
while ':' in displayName:
|
||||||
nameStr=displayName.split(':')[1]
|
emojiStr=displayName.split(':')[1]
|
||||||
if ':' not in nameStr:
|
|
||||||
break
|
|
||||||
emojiStr=nameStr.split(':')[0]
|
|
||||||
displayName=displayName.replace(':'+emojiStr+':','').strip()
|
displayName=displayName.replace(':'+emojiStr+':','').strip()
|
||||||
print('TAG: displayName after tags 3: '+displayName)
|
print('TAG: displayName after tags 3: '+displayName)
|
||||||
print('TAG: displayName after tag replacements: '+displayName)
|
print('TAG: displayName after tag replacements: '+displayName)
|
||||||
|
|
Loading…
Reference in New Issue