From 55e78786d65cca28749d5bf729c99f67c6bba613 Mon Sep 17 00:00:00 2001 From: robonen Date: Wed, 10 Jun 2026 16:31:16 +0700 Subject: [PATCH] fix(extract): improve rawExampleText function to trim trailing whitespace more effectively --- docs/modules/extractor/extract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/extractor/extract.ts b/docs/modules/extractor/extract.ts index 035c6bd..2145a68 100644 --- a/docs/modules/extractor/extract.ts +++ b/docs/modules/extractor/extract.ts @@ -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[] {