MCPcopy Create free account
hub / github.com/chatmail/core / regex_matches

Function regex_matches

scripts/set_core_version.py:15–21  ·  view source on GitHub ↗
(relpath, regex=rex)

Source from the content-addressed store, hash-verified

13
14
15def regex_matches(relpath, regex=rex):
16 p = pathlib.Path(relpath)
17 assert p.exists()
18 for line in open(str(p)):
19 m = regex.match(line)
20 if m is not None:
21 return m
22
23
24def read_toml_version(relpath):

Callers 1

read_toml_versionFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected