Explorar el Código

Update build_references.py

blueloveTH hace 1 año
padre
commit
f6dc511818
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scripts/build_references.py

+ 1 - 1
scripts/build_references.py

@@ -37,5 +37,5 @@ order: 2
 ''')
 ''')
     content = ''.join(output)
     content = ''.join(output)
     # replace {...} to  ; (multi-line match)
     # 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)
     f.write(content)