diff --git a/backend/apps/owasp/models/common.py b/backend/apps/owasp/models/common.py index 64208aa31e..79193122f7 100644 --- a/backend/apps/owasp/models/common.py +++ b/backend/apps/owasp/models/common.py @@ -236,7 +236,7 @@ def get_metadata(self): """Get entity metadata.""" try: yaml_content = re.search( - r"^---\s*([\s\S]*?)\s*---", + r"^---\s*(.*?)\s*---", get_repository_file_content(self.index_md_url), re.DOTALL, )