(path)
| 42 | |
| 43 | def 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 \*\*(.*)\*\*") |