MCPcopy
hub / github.com/CppCon/CppCon2017 / get_author_from_filename

Function get_author_from_filename

_tools/add.py:44–53  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

42
43def generate_entry(readme, session_name, path):
44 def get_author_from_filename(path):
45 author_regex = re.compile(".* - (.*) - CppCon " + str(CPPCON_YEAR) +
46 "\\.[^.]*$")
47
48 author = author_regex.search(path)
49
50 if author:
51 return author.group(1)
52
53 return ""
54
55 def get_author_from_readme_md(path):
56 readme_header_regex = re.compile(r"\*\*(.*)\*\* by \*\*(.*)\*\*")

Callers 1

generate_entryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected