test
This commit is contained in:
parent
e6c22da6c5
commit
184eb097a9
@ -48,10 +48,15 @@ def leet_convert(message):
|
|||||||
}
|
}
|
||||||
leetspeak = []
|
leetspeak = []
|
||||||
|
|
||||||
|
# Split by individual word
|
||||||
for word in message.split(" "):
|
for word in message.split(" "):
|
||||||
|
|
||||||
|
# Attempt full word replacement
|
||||||
if word.lower() in [old for old, new in replacements]:
|
if word.lower() in [old for old, new in replacements]:
|
||||||
leet_word = word.replace([old for old, new in replacements][0], [new for old, new in replacements][0])
|
leet_word = word.replace([old for old, new in replacements][0], [new for old, new in replacements][0])
|
||||||
leetspeak.append(leet_word)
|
leetspeak.append(leet_word)
|
||||||
|
|
||||||
|
# Replace indiviual characters
|
||||||
else:
|
else:
|
||||||
word_chars = []
|
word_chars = []
|
||||||
for char in word:
|
for char in word:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user