c0755ec243
The old regex [^A-Za-z0-9_-] whitelisted dashes and underscores, so -DSPLA- and _APS_ passed through untouched. All downstream code that reads team["squadron"] then saw the raw tag instead of the bare short name, causing NULL clan_ids in player_games_hist/match_summary and broken lookups throughout. Fixing at the source means every consumer gets a clean name without individual patches. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>