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: #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 authored and targos committed Feb 15, 2024
1 parent 4ddb9b3 commit e0eeebc
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 e0eeebc

Please sign in to comment.