More sanitization
This commit is contained in:
parent
27ccf4c5da
commit
fb491af8ec
@ -185,6 +185,8 @@ def tidyup(domain: str) -> str:
|
|||||||
domain = re.sub("\:\d+$", "", domain)
|
domain = re.sub("\:\d+$", "", domain)
|
||||||
# bigger retards put the schema in their blocklist, sometimes even without slashes
|
# bigger retards put the schema in their blocklist, sometimes even without slashes
|
||||||
domain = re.sub("^https?\:(\/*)", "", domain)
|
domain = re.sub("^https?\:(\/*)", "", domain)
|
||||||
|
# and trailing slash
|
||||||
|
domain = re.sub("\/$", "", domain)
|
||||||
# the biggest retards of them all try to block individual users
|
# the biggest retards of them all try to block individual users
|
||||||
domain = re.sub("(.+)\@", "", domain)
|
domain = re.sub("(.+)\@", "", domain)
|
||||||
return domain
|
return domain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user