Explorar o código

[fix] Use replaceAll instead of replace

jherve %!s(int64=2) %!d(string=hai) anos
pai
achega
e26e73ff70
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      to_pdf.js

+ 1 - 1
to_pdf.js

@@ -41,7 +41,7 @@ function exportToPdf(htmlFile, pdfPath) {
 }
 
 function cleanString(string) {
-  return string.replace(" ", "_");
+  return string.replaceAll(" ", "_");
 }
 
 function exportRenderToPdf(dataFilePath, templatePath, assetsPath, outputPath) {