mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
优化字典读取
This commit is contained in:
@@ -119,7 +119,9 @@ def gen_word_subdomains(expression, path):
|
||||
with open(path, encoding='utf-8', errors='ignore') as fd:
|
||||
for line in fd:
|
||||
word = line.strip().lower()
|
||||
if not word.isalnum():
|
||||
if len(word) == 0:
|
||||
continue
|
||||
if not word.isascii():
|
||||
continue
|
||||
if word.endswith('.'):
|
||||
word = word[:-1]
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user