Skip to content

Commit e0eeebc

Browse files
marco-ippolitotargos
authored andcommitted
tools: set normalizeTD text default to empty string
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>
1 parent 4ddb9b3 commit e0eeebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/dep_updaters/update-root-certs.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getCertdataURL = (version) => {
2828
returncertdataURL;
2929
};
3030

31-
constnormalizeTD=(text)=>{
31+
constnormalizeTD=(text='')=>{
3232
// Remove whitespace and any HTML tags.
3333
returntext?.trim().replace(/<.*?>/g,'');
3434
};

0 commit comments

Comments
 (0)