1.0.13 Removal of bug in special character word parsing

This commit is contained in:
Vivek Teega 2022-03-24 07:37:12 +00:00
parent e2b6ef1123
commit acc3858b27

View File

@ -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