Shorter, possibly more efficient but who cares anyway
This commit is contained in:
parent
5d33a4392c
commit
003c8b8567
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def sanitizeText(text):
|
|||
try:
|
||||
if "@" in (text[0], text[1]):
|
||||
if split[1][0] not in string.ascii_lowercase:
|
||||
return sanitizeText(text.partition(" ")[2])
|
||||
return sanitizeText(" ".join(split[1:]))
|
||||
if split[-1][0] == "@":
|
||||
return sanitizeText(" ".join(split[:-1]))
|
||||
if text[:4] == "RT @":
|
||||
|
|
Loading…
Reference in a new issue