Tweak regex for README metadata-parsing..

..to allow use of `- `-style Markdown lists (e.g. Wordpress).

Bonus: adds "sso" key to features data.
This commit is contained in:
3wc 2021-05-30 14:35:18 +02:00
parent 8c93d1ae88
commit b14219b492
1 changed files with 2 additions and 1 deletions

View File

@ -140,6 +140,7 @@ def generate_apps_json(repos_json):
chdir(app_path)
metadata = get_app_metadata(app_path)
name = metadata.pop("name", "")
log.info(f"Processing {app}")
@ -173,7 +174,7 @@ def get_app_metadata(app_path):
return {}
try:
for match in findall(r"\*\*.*\s\*", contents):
for match in findall(r"\*\*.*", contents):
title = search(r"(?<=\*\*).*(?=\*\*)", match).group().lower()
if title == "image":