]> git.mxchange.org Git - fba.git/commitdiff
+1 filter for entries
authorMint <>
Wed, 30 Nov 2022 00:18:51 +0000 (03:18 +0300)
committerMint <>
Wed, 30 Nov 2022 00:18:51 +0000 (03:18 +0300)
fetch_blocks.py

index 7a3ae2882577df24bbaa23e918aec835027725e1..31e3f72b0aa071c3aeaecc1f44fa084d7924c93b 100644 (file)
@@ -191,6 +191,8 @@ def tidyup(domain: str) -> str:
     domain = re.sub("^https?\:(\/*)", "", domain)
     # and trailing slash
     domain = re.sub("\/$", "", domain)
+    # and the @
+    domain = re.sub("^\@", "", domain)
     # the biggest retards of them all try to block individual users
     domain = re.sub("(.+)\@", "", domain)
     return domain