Files
romm/backend/handler/filesystem
TowyTowy 8c54a884a9 fix(scan): resolve "Reg-" prefixed region shortcodes to full names
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>
2026-07-15 20:22:16 +02:00
..
2026-07-06 22:17:56 -04:00
2026-06-23 22:33:19 -04:00
2026-04-30 14:48:20 -04:00