⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
small fix
daniel31x13350cdb485a70
diff --git a/apps/worker/lib/autoTagLink.ts b/apps/worker/lib/autoTagLink.tsindex 45abb248..e6241593 100644--- a/apps/worker/lib/autoTagLink.ts+++ b/apps/worker/lib/autoTagLink.ts@@ -132,7 +132,10 @@ export default async function autoTagLink(});try {- let tags: string[] = JSON.parse(text);+ // If text has an array inside a "```json ```" block, extract that+ let tags: string[] = JSON.parse(+ text.match(/```json\s*([\s\S]*?)\s*```/i)?.[1] ?? text+ );if (!tags || tags.length === 0) {return;