Skip to content

Commit 044c08d

Browse files
authored
strip origin from links in deprecation notices (#941)
1 parent 140dbff commit 044c08d

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/scripts/sync-docs

1 file changed

+1
-1
lines changed

apps/svelte.dev/scripts/sync-docs/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function get_types(code: string, statements: ts.NodeArray<ts.Statem
9595
if (jsDoc.tags) {
9696
for (const tag of jsDoc.tags) {
9797
if (tag.tagName.escapedText === 'deprecated') {
98-
deprecated_notice = tag.comment;
98+
deprecated_notice = tag.comment && strip_origin(tag.comment);
9999
}
100100

101101
if (tag.tagName.escapedText === 'since') {

0 commit comments

Comments
 (0)