Browse Source

Update build_references.py

blueloveTH 2 năm trước cách đây
mục cha
commit
f6dc511818
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/build_references.py

+ 1 - 1
scripts/build_references.py

@@ -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)