Commit 1d57a369 authored by Alexander Færøy's avatar Alexander Færøy 🍍
Browse files

Handle wordlist inputs.

parent feacd156
......@@ -24,3 +24,8 @@ def random(n: int) -> List[str]:
result.append(secrets.choice(words))
return result
def parse_wordlist(s: str) -> List[str]:
s = s.lower()
s = s.strip()
return s.split(" ")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment