Просмотр исходного кода

[fix] Use replaceAll instead of replace

jherve 1 год назад
Родитель
Сommit
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) {
 function cleanString(string) {
-  return string.replace(" ", "_");
+  return string.replaceAll(" ", "_");
 }
 }
 
 
 function exportRenderToPdf(dataFilePath, templatePath, assetsPath, outputPath) {
 function exportRenderToPdf(dataFilePath, templatePath, assetsPath, outputPath) {