right of = should be right of =

master
b3yond 2018-09-15 18:50:37 +02:00 committed by GitHub
parent ac85b2e0be
commit 14d982702e
1 changed files with 2 additions and 2 deletions

View File

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