Procházet zdrojové kódy

[fix] Use replaceAll instead of replace

jherve před 1 rokem
rodič
revize
e26e73ff70
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {