Skip to content

fix(client): card art lookup for accented names (#1497)#3630

Open
kiannidev wants to merge 2 commits into
phase-rs:mainfrom
kiannidev:fix/issue-1497-diacritic-card-art-lookup
Open

fix(client): card art lookup for accented names (#1497)#3630
kiannidev wants to merge 2 commits into
phase-rs:mainfrom
kiannidev:fix/issue-1497-diacritic-card-art-lookup

Conversation

@kiannidev

Copy link
Copy Markdown
Contributor

Summary

  • Build a diacritic-folded name index when loading scryfall-data.json.
  • Use folded lookup for oracle-id resolution and image URL fetching so cards like Éomer/Éowyn resolve when the engine reports ASCII names.

fix #1497

Test plan

  • npm test -- --run scryfall.test

Made with Cursor

Fold combining marks when looking up scryfall-data by name so ASCII
engine names like "Eomer" match accented local keys like "Éomer".

Co-authored-by: Cursor <cursoragent@cursor.com>
@kiannidev kiannidev requested a review from matthewevans as a code owner June 17, 2026 19:50
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

lookupEntryByName loads data internally; keep the await for cache warm-up
without triggering eslint no-unused-vars.

Co-authored-by: Cursor <cursoragent@cursor.com>
@matthewevans matthewevans added the bug Bug fix label Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Éomer/Éowyn — Card's with fancy letters do not show art properly, at the very least these two

2 participants