Update build_references.py

This commit is contained in:
blueloveTH 2024-05-05 12:21:05 +08:00
parent f7b0abff5a
commit f6dc511818

View File

@ -37,5 +37,5 @@ order: 2
''')
content = ''.join(output)
# replace {...} to ; (multi-line match)
content = re.sub(r'{(.+?)}', r';', content, flags=re.DOTALL)
content = re.sub(r'\{[^}]+?\}', r';', content, flags=re.DOTALL)
f.write(content)