소스 검색

[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) {