File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77_domains_strict : Optional [frozenset [str ]] = None
88
99
10+ def _load_custom () -> frozenset [str ]:
11+ data = files ("disposable_email" ).joinpath ("domains_custom.txt" ).read_text (encoding = "utf-8" )
12+ return frozenset (line .strip ().lower () for line in data .splitlines () if line .strip ())
13+
14+
1015def _load (strict : bool = False ) -> frozenset [str ]:
1116 global _domains , _domains_strict
17+ custom = _load_custom ()
1218 if strict :
1319 if _domains_strict is None :
1420 data = files ("disposable_email" ).joinpath ("domains_strict.txt" ).read_text (encoding = "utf-8" )
15- _domains_strict = frozenset (line .strip ().lower () for line in data .splitlines () if line .strip ())
21+ _domains_strict = frozenset (line .strip ().lower () for line in data .splitlines () if line .strip ()) | custom
1622 return _domains_strict
1723 else :
1824 if _domains is None :
1925 data = files ("disposable_email" ).joinpath ("domains.txt" ).read_text (encoding = "utf-8" )
20- _domains = frozenset (line .strip ().lower () for line in data .splitlines () if line .strip ())
26+ _domains = frozenset (line .strip ().lower () for line in data .splitlines () if line .strip ()) | custom
2127 return _domains
2228
2329
Original file line number Diff line number Diff line change 1+ beeinbox.com
2+ beeinbox.edu.pl
3+ chinasteel.xyz
4+ oast.fun
5+ obee.info
6+ smkanba.com
7+ superbee.my
8+ tempumail.cv
9+ typingsquirrel.com
10+ ussteel.xyz
You can’t perform that action at this time.
0 commit comments