Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/217heidai/adblockfilters
/ match
Method
match
resolver.py:70–71 ·
view source on GitHub ↗
(pattern, string)
Source
from the content-addressed store, hash-verified
68
# host 模式
69
def
__resolveHost(self, line) -> Tuple[str]:
70
def
match(pattern, string):
71
return
True
if
re.match(pattern, string)
else
False
72
try
:
73
block=None
74
while
True:
Callers
4
getRules
Method · 0.80
repetition
Method · 0.80
__domainSort
Method · 0.80
__isChinaDomain
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected