From b9aa44421fe16701d4148bfd176dfd1151f489d4 Mon Sep 17 00:00:00 2001 From: kai ru Date: Fri, 27 Dec 2024 12:36:18 +0800 Subject: [PATCH] fix swagger tag yaml parse --- src/aaz_dev/swagger/model/specs/_resource_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aaz_dev/swagger/model/specs/_resource_provider.py b/src/aaz_dev/swagger/model/specs/_resource_provider.py index a2b91dfd..ce925954 100644 --- a/src/aaz_dev/swagger/model/specs/_resource_provider.py +++ b/src/aaz_dev/swagger/model/specs/_resource_provider.py @@ -96,7 +96,7 @@ def _parse_readme_input_file_tags(self): readme = f.read() re_yaml = re.compile( - r'```\s*yaml\s*(.*\$\(\s*tag\s*\)\s*==\s*[\'"]\s*(.*)\s*[\'"].*)?\n((((?!```).)*\n)*)```\s*\n', + r'```\s*yaml\s*(.*\$\(\s*tag\s*\)\s*==\s*[\'"]\s*(.*)\s*[\'"].*)?\n((((?!```).)*\n)*)\s*```\s*\n', flags=re.MULTILINE) for piece in re_yaml.finditer(readme): flags = piece[1]