Skip to content

Commit

Permalink
tools: set normalizeTD text default to empty string
Browse files Browse the repository at this point in the history
PR-URL: nodejs#51543
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
  • Loading branch information
marco-ippolito committed Jan 29, 2024
1 parent 874ca58 commit ede8996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dep_updaters/update-root-certs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, '');
};
Expand Down

0 comments on commit ede8996

Please sign in to comment.