Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add starlight-tags (#16)

authored by

Felix Schneider and committed by
GitHub
d41ef20c 8762c56b

+9 -1
+8
src/data.ts
··· 35 35 "https://raw.githubusercontent.com/HiDeoo/starlight-videos/refs/heads/main/packages/starlight-videos/translations.ts", 36 36 }, 37 37 { 38 + name: "Starlight Tags", 39 + packageName: "starlight-tags", 40 + translationFileLink: 41 + "https://github.com/frostybee/starlight-tags/blob/main/packages/starlight-tags/src/translations.ts", 42 + translationFileLinkRaw: 43 + "https://raw.githubusercontent.com/frostybee/starlight-tags/refs/heads/main/packages/starlight-tags/src/translations.ts", 44 + }, 45 + { 38 46 name: "Starlight View Modes", 39 47 packageName: "starlight-view-modes", 40 48 translationFileLink:
+1 -1
src/utils.ts
··· 43 43 const text = await fetchTranslationFileRaw(url); 44 44 45 45 // Extract the JSON-ish Translations object code 46 - const match = text.match(/export const Translations\s*=\s*(\{[\s\S]*\});?/); 46 + const match = text.match(/export const Translations\s*=\s*(\{[\s\S]*\});?/i); 47 47 if (!match) throw new Error("Could not find Translations object in the file"); 48 48 49 49 const translationObject = new Function(