From 1a793657afa4851267e7210c2922187cbd442f40 Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 15 Sep 2018 18:50:37 +0200 Subject: [PATCH] right of = should be right of = --- active_bots/twitterDMs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/active_bots/twitterDMs.py b/active_bots/twitterDMs.py index 237d7a1..36b2562 100644 --- a/active_bots/twitterDMs.py +++ b/active_bots/twitterDMs.py @@ -39,8 +39,8 @@ class TwitterBot(Bot): mentions = api.mentions_timeline(since_id=last_dm[0]) for status in mentions: text = re.sub( - "(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)", - "", status.text) + "(?<=^|(?<=[^a-zA-Z0-9-_\.]))@([A-Za-z]+[A-Za-z0-9-_]+)", + "", status.text) reports.append(report.Report(status.author.screen_name, "twitterDM", text,