Skip to content

Commit 153fea9

Browse files
committed
Also sanitize @name JSDoc comments
1 parent 74d7742 commit 153fea9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/builder/prepare-gh-pages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ function zipDirectory(sourceDir, outPath) {
128128
// rewrite content of the JS file
129129
let content = readFileSync(sourceJS, { encoding: "utf8" });
130130
content = content.replaceAll(/\/\*\*.*[\n\s]+\* @namespace.*[\n\s]+\*\/[\n\s]+/g, "");
131+
content = content.replaceAll(/\/\*\*.*[\n\s]+\* @name.*[\n\s]+\*\/[\n\s]+/g, "");
131132
content = content.replaceAll(/\/\/# sourceMappingURL=.*[\n\s]+/g, "");
132133
writeFileSync(targetJS, content, { encoding: "utf8" });
133134
} else {

0 commit comments

Comments
 (0)