Hannah fix
This commit is contained in:
parent
534b3ddda7
commit
647bb21610
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def sanitizeText(text):
|
|||
if text[0] == "@" or text[1] == "@":
|
||||
if split[1][0] not in string.ascii_lowercase:
|
||||
return sanitizeText(" ".join(split[1:]))
|
||||
if split[-1][0] == "@" and text[-1] in string.ascii_lowercase:
|
||||
if split[-1][0] == "@" and text[-1] in (string.ascii_letters + "_"):
|
||||
return sanitizeText(" ".join(split[:-1]))
|
||||
if text[:4] == "RT @":
|
||||
return sanitizeText(text.partition(":")[2])
|
||||
|
|
Loading…
Reference in a new issue