MCPcopy
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

getRulesMethod · 0.80
repetitionMethod · 0.80
__domainSortMethod · 0.80
__isChinaDomainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected