From 4c58ebb7858dcdd1febc93530fc88958953d97a8 Mon Sep 17 00:00:00 2001 From: acalcutt Date: Fri, 3 Jan 2025 12:11:41 -0500 Subject: [PATCH] try to fix codeql error --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 9a506c9..d9133a8 100644 --- a/src/utils.js +++ b/src/utils.js @@ -198,7 +198,7 @@ function getFontPbf(allowedFonts, fontPath, name, range, fallbacks) { return new Promise((resolve, reject) => { if (!allowedFonts || (allowedFonts[name] && fallbacks)) { if (!name || typeof name !== 'string' || name.trim() === '') { - console.error('ERROR: Invalid font name: %s', name); + console.error('ERROR: Invalid font name: %s', String(name)); return reject('Invalid font name'); } if (!/^\d+-\d+$/.test(range)) {