mirror of
https://github.com/rommapp/romm.git
synced 2026-12-02 18:18:47 +01:00
Pattern.search() takes pos as its second argument, not flags, so passing re.IGNORECASE (value 2) started the serial scan at index 2. Filenames that begin with the serial itself (e.g. SCUS-94163.bin) never matched, and the PS1/PS2/PSP serial index resolution was silently skipped in the IGDB, MobyGames, and ScreenScraper handlers. The regex already matches both cases via [a-zA-Z], and the serial is uppercased before the Redis lookup (#3621), so the intended flag added nothing. Drop the stray argument so serials are found anywhere in the filename, including at the start. Co-Authored-By: Claude <noreply@anthropic.com>