Skip to content

Commit ce49cb6

Browse files
marco-ippolitorichardlau
authored andcommitted
tools: set normalizeTD text default to empty string
PR-URL: #51543 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 92fca59 commit ce49cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/dep_updaters/update-root-certs.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getCertdataURL = (version) => {
2828
return certdataURL;
2929
};
3030

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

0 commit comments

Comments
 (0)