Skip to content

Commit 066539b

Browse files
committed
don't look for hashes in the title
1 parent 147ef9f commit 066539b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/lib.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,10 @@ export function searchSessions(
779779

780780
export function getHashTags(head: t.SessionHead): string[] {
781781
const regexp = /(?:^|\s)(#[a-zA-Z0-9_-]+)(?=$|[^a-zA-Z0-9_-])/g;
782-
const titleTagsIt = head.title.matchAll(regexp);
782+
// const titleTagsIt = head.title.matchAll(regexp);
783783
const descTagsIt = head.description.matchAll(regexp);
784-
return [...titleTagsIt, ...descTagsIt].map(m => m[1]);
784+
// return [...titleTagsIt, ...descTagsIt].map(m => m[1]);
785+
return [...descTagsIt].map(m => m[1]);
785786
}
786787

787788
// export function limitRecentSessions(sessions: t.SessionUIListing[], limit: number): t.SessionUIListing[] {

0 commit comments

Comments
 (0)