fix(extract): improve rawExampleText function to trim trailing whitespace more effectively
This commit is contained in:
@@ -166,7 +166,7 @@ function rawExampleText(tag: JSDocTag): string {
|
|||||||
.split('\n')
|
.split('\n')
|
||||||
.map(line => line.replace(/^\s*\*(?: |\/\s*$)?/, ''))
|
.map(line => line.replace(/^\s*\*(?: |\/\s*$)?/, ''))
|
||||||
.join('\n')
|
.join('\n')
|
||||||
.replace(/\s*\*?\/?\s*$/, '');
|
.replace(/\*\/?$/, '').trimEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getExamples(tags: JSDocTag[]): string[] {
|
function getExamples(tags: JSDocTag[]): string[] {
|
||||||
|
|||||||
Reference in New Issue
Block a user