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 richardlau committed Mar 25, 2024
1 parent 92fca59 commit ce49cb6
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 ce49cb6

Please sign in to comment.