From 2e58763e7e16293050e83d1779475415e59c9c6f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Aug 2021 18:37:55 +0200 Subject: [PATCH] removal of the potential extra "a" in the "nan" --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0237890..fc96bca 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ class Listener(StreamListener): if status._json["user"]["id"] in self.listOfFriendsID: # verification of the author of the tweet if seniority(status._json["created_at"]): # verification of the age of the tweet # recovery of the last "usable" word of the tweet - tweetText = sub(r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+", "", status._json["text"].lower()) + tweetText = sub(r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+|(?<=na)a+(?