Skip to content

Commit d2d7e09

Browse files
committed
fix: publication url detection
1 parent b101d10 commit d2d7e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/crawl-publications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function parsePublicationFromLi(liContent: string): Publication | null {
309309
const isPaperHost = PAPER_HOST_DOMAINS.some(domain => url.includes(domain));
310310
const isTitle = isPaperHost &&
311311
text.length > MIN_TITLE_LINK_TEXT_LENGTH &&
312-
!text.toLowerCase().includes('code');
312+
(!text.toLowerCase().includes('code') || text.length > 30);
313313

314314
links.push({ text, url, isTitle });
315315
}

0 commit comments

Comments
 (0)