diff --git a/data/catalog.json b/data/catalog.json index 3f0d58e..f978188 100644 --- a/data/catalog.json +++ b/data/catalog.json @@ -7864,8 +7864,8 @@ ] }, { - "stem": "Fused Dimensions", - "title": "Pokémon Fused Dimensions", + "stem": "Fused Dimensions", + "title": "Pokémon Fused Dimensions", "platform": "GBA", "base": "FireRed", "version": null, diff --git a/src/lib/catalog.test.ts b/src/lib/catalog.test.ts index 217219f..76865ef 100644 --- a/src/lib/catalog.test.ts +++ b/src/lib/catalog.test.ts @@ -47,7 +47,7 @@ const baseCatalog: RawCatalog = { links: [{ label: 'Source / info', url: 'https://example.com/radical' }], }, { - stem: 'A FarfetchΓÇÖD Story', + stem: 'A Farfetch’D Story', title: 'Pokémon A Farfetch’D Story', platform: 'PC', base: null, @@ -89,7 +89,8 @@ const baseCatalog: RawCatalog = { describe('catalog normalization', () => { it('creates deterministic URL-safe slugs from stems', () => { expect(slugifyStem('Radical Red')).toBe('radical-red'); - expect(slugifyStem('A FarfetchΓÇÖD Story')).toBe('a-farfetch-d-story'); + expect(slugifyStem('A Farfetch’D Story')).toBe('a-farfetch-d-story'); + expect(slugifyStem('Fused Dimensions')).toBe('fused-dimensions'); expect(slugifyStem('Pokémon: Crystal Clear!')).toBe('pokemon-crystal-clear'); }); diff --git a/src/lib/catalog.ts b/src/lib/catalog.ts index 930c982..7ff224f 100644 --- a/src/lib/catalog.ts +++ b/src/lib/catalog.ts @@ -127,7 +127,6 @@ export function normalizeHack(raw: RawHack): SiteHack { export function slugifyStem(stem: string): string { return stem - .replaceAll('ΓÇÖ', "'") .normalize('NFKD') .replace(/[\u0300-\u036f]/g, '') .replace(/[^a-zA-Z0-9]+/g, '-')