Skip to content

Commit

Permalink
Merge df1f70f into f6aa8fe
Browse files Browse the repository at this point in the history
  • Loading branch information
0xiso committed Jul 18, 2023
2 parents f6aa8fe + df1f70f commit ff21142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions aiodnsbl/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def normalize_domain(value: str) -> str:
return idna.encode(value).decode()


# regex taken from https://regexr.com/3abjr
DOMAIN_REGEX = re.compile(
r"^((?!-))(xn--)?[a-z0-9][a-z0-9-_]{0,61}[a-z0-9]{0,1}\.(xn--)?([a-z0-9\-]{1,61}|[a-z0-9-]{1,30}\.[a-z]{2,})$"
)
# https://regex101.com/r/vdrgm7/1
DOMAIN_REGEX = re.compile(r"^(((?!-))(xn--|_{1,1})?[a-z0-9-]{0,61}[a-z0-9]{1,1}\.)*(xn--[a-z0-9][a-z0-9\-]{0,60}|[a-z0-9-]{1,30}\.[a-z]{2,})$")


@functools.lru_cache(maxsize=256)
Expand Down
1 change: 0 additions & 1 deletion aiodnsbl/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Provider:

_BASE_PROVIDERS = [
"b.barracudacentral.org",
"bl.spamcop.net",
"dnsbl.sorbs.net",
"ips.backscatterer.org",
"psbl.surriel.com",
Expand Down

0 comments on commit ff21142

Please sign in to comment.