mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
1 parent
4ddb9b33d5
commit
e0eeebc960
1 file changed
+1
-1
@@ -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, '');
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user