Преглед на файлове

[fix] Use replaceAll instead of replace

jherve преди 1 година
родител
ревизия
e26e73ff70
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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) {