瀏覽代碼

Update build_references.py

blueloveTH 2 年之前
父節點
當前提交
f6dc511818
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)