mirror of
https://github.com/DandelionSprout/adfilt.git
synced 2026-10-04 13:11:08 +01:00
Update scripts/compile.py
Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
This commit is contained in:
co-authored by
rusty-snake
parent
9de66debb7
commit
69dde41cff
@@ -26,6 +26,7 @@ import sys
|
||||
|
||||
endrules = None
|
||||
|
||||
|
||||
def normalize_url_pattern(url_pattern: str) -> str:
|
||||
# No need for protocol and subdomain
|
||||
url_pattern = url_pattern.replace(r"^https?:\/\/(?:[a-z0-9-]+\.)*?", "", 1)
|
||||
|
||||
Reference in New Issue
Block a user