From b326fc151dcbe05bb4b2a81cd7b3b0bb9555767d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 5 Aug 2021 14:41:05 +0200 Subject: [PATCH] fix regex not doing on the right string --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 08c75a5..bac6d14 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ class Listener(StreamListener): tweet = status.text.lower() # recovery of the last "usable" word of the tweet tweetText = sub(r"https?:\/\/\S+| *\?+| *!+| *,+|-|~|\.+|…|\^+|@\S+" + f"|{emojis()}", " ", tweet) # deletion with space - tweetText = sub(r"(?<=ui)i+|(?<=na)a+(?