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:
parent
8c93d1ae88
commit
b14219b492
@ -140,6 +140,7 @@ def generate_apps_json(repos_json):
|
|||||||
chdir(app_path)
|
chdir(app_path)
|
||||||
|
|
||||||
metadata = get_app_metadata(app_path)
|
metadata = get_app_metadata(app_path)
|
||||||
|
|
||||||
name = metadata.pop("name", "")
|
name = metadata.pop("name", "")
|
||||||
|
|
||||||
log.info(f"Processing {app}")
|
log.info(f"Processing {app}")
|
||||||
@ -173,7 +174,7 @@ def get_app_metadata(app_path):
|
|||||||
return {}
|
return {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for match in findall(r"\*\*.*\s\*", contents):
|
for match in findall(r"\*\*.*", contents):
|
||||||
title = search(r"(?<=\*\*).*(?=\*\*)", match).group().lower()
|
title = search(r"(?<=\*\*).*(?=\*\*)", match).group().lower()
|
||||||
|
|
||||||
if title == "image":
|
if title == "image":
|
||||||
|
Reference in New Issue
Block a user