mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
PR #3035 made region/language shortcode lookups case-sensitive by keying REGIONS_BY_SHORTCODE on the uppercase codes, and updated the plain tag lookups to match against the raw (unlowered) tag. The "Reg-" prefix branch was missed: it still lowercased the captured shortcode before looking it up, so it could never hit the now-uppercase-keyed dict. As a result a tag like "[Reg-J]" was stored as the raw "J" instead of resolving to "Japan". Match the shortcode with its original case, like the other lookups, so "[Reg-J]" resolves to "Japan" and "[Reg-U]" to "USA". Non-shortcode values (e.g. "[Reg-PAL]") are still kept verbatim via the fallback. Co-Authored-By: Claude <noreply@anthropic.com>