forked from toolshed/abra-bash
		
	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:
		@ -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":
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user