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 Michaël Zasso committed 2024-02-15 12:05:51 +01:00
1 parent 4ddb9b33d5
commit e0eeebc960
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, '');
};