From acc3858b27d4188cbfd745426c8fce92151d83b1 Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Thu, 24 Mar 2022 07:37:12 +0000 Subject: [PATCH] 1.0.13 Removal of bug in special character word parsing --- parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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