From 59f4dccb07c7e4f3c9feb2b1e433102f5a617ea4 Mon Sep 17 00:00:00 2001 From: acalcutt Date: Sat, 4 Jan 2025 23:07:19 -0500 Subject: [PATCH] codeql --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 1a164e7..a42c267 100644 --- a/src/utils.js +++ b/src/utils.js @@ -235,7 +235,7 @@ function getFontPbf(allowedFonts, fontPath, name, range, fallbacks) { if (err) { console.error( 'ERROR: Font not found: %s, Error: %s', - filename, + filename.replace(/\n|\r/g, ''), String(err), ); if (fallbacks && Object.keys(fallbacks).length) {