Skip to content

Commit

Permalink
Merge pull request Azure#441 from kairu-ms/fix-swagger-tag-parse
Browse files Browse the repository at this point in the history
fix swagger tag yaml parse
  • Loading branch information
kairu-ms authored Dec 27, 2024
2 parents e68bf99 + b9aa444 commit de9e28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aaz_dev/swagger/model/specs/_resource_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit de9e28e

Please sign in to comment.