removed non alpha words from dict
This commit is contained in:
parent
3f2f19943a
commit
dec1323c47
104334
internal/words/dictionary.go
104334
internal/words/dictionary.go
File diff suppressed because it is too large
Load Diff
@ -75,6 +75,8 @@ var Words []string = []string{"""
|
|||||||
|
|
||||||
with open("/usr/share/dict/words", "r") as f:
|
with open("/usr/share/dict/words", "r") as f:
|
||||||
for l in f.readlines():
|
for l in f.readlines():
|
||||||
|
if not l.isalpha():
|
||||||
|
break
|
||||||
lines.append(f'\t"{l.strip()}",')
|
lines.append(f'\t"{l.strip()}",')
|
||||||
|
|
||||||
lines.append("}")
|
lines.append("}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user