From 6611702ee1ac535d41ea3a6b4f45bbee0d9e1181 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 23 Sep 2019 12:11:13 +0100 Subject: [PATCH] Comments --- content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.py b/content.py index d97e535e3..0f61b0b89 100644 --- a/content.py +++ b/content.py @@ -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):