Skip to content

Commit c717d2b

Browse files
committedMar 4, 2025
Global regexp in replaceall
1 parent 05bf8bc commit c717d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎xp-archive/server/src/services/PdfService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class PdfService {
131131
const page = await this.browser.newPage();
132132

133133
const htmlWithoutHeaderAndFooter = html.replaceAll(
134-
/(<header([^;]*)<\/header>|<footer([^;]*)<\/footer>)/,
134+
/(<header([^;]*)<\/header>|<footer([^;]*)<\/footer>)/g,
135135
''
136136
);
137137

0 commit comments

Comments
 (0)
Please sign in to comment.