tools: set normalizeTD text default to empty string

PR-URL: https://github.com/nodejs/node/pull/51543
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
This commit is contained in:
Marco Ippolito authored and Richard Lau committed 2024-03-25 19:25:06 +00:00
1 parent 92fca59647
commit ce49cb6656
1 file changed
+1 -1
+1 -1
View File
@@ -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, '');
};