Explorar el Código

[fix] Use replaceAll instead of replace

jherve hace 1 año
padre
commit
e26e73ff70
Se han modificado 1 ficheros con 1 adiciones y 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) {