mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Fix whitelist
This commit is contained in:
parent
1213349611
commit
9d0029cdfb
1 changed files with 5 additions and 4 deletions
|
@ -46,10 +46,11 @@ class WhiteList:
|
||||||
|
|
||||||
lastWord = words[-1]
|
lastWord = words[-1]
|
||||||
|
|
||||||
if (not lastWord) or self.isPrefix(lastWord):
|
if not garbler:
|
||||||
newWords[-1] = lastWord
|
if (not lastWord) or self.isPrefix(lastWord):
|
||||||
else:
|
newWords[-1] = lastWord
|
||||||
newWords[-1] = self.getReplacement(lastWord, av, garbler)
|
else:
|
||||||
|
newWords[-1] = self.getReplacement(lastWord, av, garbler)
|
||||||
|
|
||||||
return ' '.join(newWords)
|
return ' '.join(newWords)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue