MCPcopy Index your code
hub / github.com/nodejs/node / match

Method match

tools/test.py:1527–1531  ·  view source on GitHub ↗
(self, str)

Source from the content-addressed store, hash-verified

1525 self.compiled = None
1526
1527 def match(self, str):
1528 if not self.compiled:
1529 pattern = "^" + self.pattern.replace('*', '.*') + "$"
1530 self.compiled = re.compile(pattern)
1531 return self.compiled.match(str)
1532
1533 def __str__(self):
1534 return self.pattern

Callers

nothing calls this directly

Calls 2

matchMethod · 0.65
compileMethod · 0.45

Tested by

no test coverage detected