Return a list of authors extracted from a text ``line``, or None
(line)
| 107 | |
| 108 | |
| 109 | def get_authors(line): |
| 110 | """ |
| 111 | Return a list of authors extracted from a text ``line``, or None |
| 112 | """ |
| 113 | if '.author' in line: |
| 114 | authors = re.sub(r'/*.*author.*?=', '', line) |
| 115 | stripped_authors = get_cleaned_string(authors) |
| 116 | stripped_authors = re.sub(r'(\s*=>\s*)', '=>', stripped_authors) |
| 117 | stripped_authors = stripped_authors.strip() |
| 118 | stripped_authors = stripped_authors.split(',') |
| 119 | return stripped_authors |
| 120 | |
| 121 | |
| 122 | # mapping of parser callable by its field name |
nothing calls this directly
no test coverage detected