mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47: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:
|
with open(path, encoding='utf-8', errors='ignore') as fd:
|
||||||
for line in fd:
|
for line in fd:
|
||||||
word = line.strip().lower()
|
word = line.strip().lower()
|
||||||
if not word.isalnum():
|
if len(word) == 0:
|
||||||
|
continue
|
||||||
|
if not word.isascii():
|
||||||
continue
|
continue
|
||||||
if word.endswith('.'):
|
if word.endswith('.'):
|
||||||
word = word[:-1]
|
word = word[:-1]
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user