Skip to content

Commit 1ac0d9f

Browse files
committed
fix: Remove ' - Chrome Web Store' title suffix from extension names
1 parent 287dc2c commit 1ac0d9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/crawlers/chrome-crawler.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export async function crawlExtension(
2424
// Bun.write("chrome.html", document.documentElement.outerHTML);
2525

2626
// Basic metadata
27-
const name = metaContent(document, "property=og:title");
27+
const name = metaContent(document, "property=og:title")?.replace(
28+
/ - Chrome Web Store$/,
29+
"",
30+
);
2831
const storeUrl = metaContent(document, "property=og:url");
2932
const iconUrl = metaContent(document, "property=og:image")?.replace(
3033
/=.+?$/,

0 commit comments

Comments
 (0)