fix(extract): improve rawExampleText function to trim trailing whitespace more effectively

This commit is contained in:
2026-06-10 16:31:16 +07:00
parent a39d93a6a4
commit 55e78786d6
+1 -1
View File
@@ -166,7 +166,7 @@ function rawExampleText(tag: JSDocTag): string {
.split('\n')
.map(line => line.replace(/^\s*\*(?: |\/\s*$)?/, ''))
.join('\n')
.replace(/\s*\*?\/?\s*$/, '');
.replace(/\*\/?$/, '').trimEnd();
}
function getExamples(tags: JSDocTag[]): string[] {