diff --git a/parsing.py b/parsing.py index 7902e12..66c4b8b 100644 --- a/parsing.py +++ b/parsing.py @@ -302,7 +302,7 @@ def outputreturn(*argv): def extract_specialcharacter_words(rawstring, special_characters): wordList = [] for word in rawstring.split(' '): - if (len(word) != 1 or word==":") and word[-1] in special_characters: + if (len(word) not in [0,1] or word==":") and word[-1] in special_characters: wordList.append(word) return wordList