From e0eeebc960d03a4c911fe4a083ea5eef978ace5e Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Wed, 24 Jan 2024 18:39:36 +0100 Subject: [PATCH] tools: set normalizeTD text default to empty string PR-URL: https://github.com/nodejs/node/pull/51543 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Yagiz Nizipli --- tools/dep_updaters/update-root-certs.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dep_updaters/update-root-certs.mjs b/tools/dep_updaters/update-root-certs.mjs index a5516860248603..64f3c88b851b7f 100644 --- a/tools/dep_updaters/update-root-certs.mjs +++ b/tools/dep_updaters/update-root-certs.mjs @@ -28,7 +28,7 @@ const getCertdataURL = (version) => { return certdataURL; }; -const normalizeTD = (text) => { +const normalizeTD = (text = '') => { // Remove whitespace and any HTML tags. return text?.trim().replace(/<.*?>/g, ''); };