MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / __init__

Method __init__

aura/pattern_matching.py:156–164  ·  view source on GitHub ↗
(self, signature: dict)

Source from the content-addressed store, hash-verified

154 pattern_type = "regex"
155
156 def __init__(self, signature: dict):
157 super().__init__(signature)
158
159 flags = 0
160 for f in signature.get("flags", ""):
161 if f == "I":
162 flags |= re.I
163
164 self._regex = re.compile(signature["pattern"], flags=flags)
165
166 @lru_cache()
167 def match_string(self, value: str) -> bool:

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected