소스 검색

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)