Explorar o código

Update build_references.py

blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
f6dc511818
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)