error system: main -> CLI/bot instead of redoing it 2 times

This commit is contained in:
klemek
2020-04-29 11:33:19 +02:00
parent a7610c2f01
commit 08c938719a
5 changed files with 39 additions and 35 deletions
+4
View File
@@ -142,6 +142,10 @@ def find_nearest(word: str, wlist: List[str], threshold: int = 5) -> Optional[st
return found[2]
def sanitize_input(src: str) -> str:
return re.sub(r'[^A-Za-z0-9 _]', "", src.lower().strip())
# endregion
# region format utils