Skip to content

Instantly share code, notes, and snippets.

@chrisl8888
Last active May 22, 2026 03:48
Show Gist options
  • Select an option

  • Save chrisl8888/dee59ed05b862295ed51ffadccec756b to your computer and use it in GitHub Desktop.

Select an option

Save chrisl8888/dee59ed05b862295ed51ffadccec756b to your computer and use it in GitHub Desktop.
schedule_transform.md

Opponent Name Formatting (schedule display only)

When rendering the schedule table, strip the division segment from raw opponent strings:

  • Raw format: MC-3B-[Team Name]-[Coach]
  • Display format: MC [Team Name] - [Coach]

Rules:

  1. Remove -3B-
  2. Replace leading MC- with MC
  3. Replace the final - (before coach surname) with -
  4. Split unhyphenated multi-word names: TexasTornadoesTexas Tornadoes

Examples:

Raw Display
MC-3B-Stars-Khalyknazarov MC Stars - Khalyknazarov
MC-3B-Leopards-Parsons MC Leopards - Parsons
MC-3B-Texas Heat-Asquith MC Texas Heat - Asquith
MC-3B-Spurs-Franklin MC Spurs - Franklin
MC-3B-TexasTornadoes-Michelena MC Texas Tornadoes - Michelena

Scope: Schedule tables only. Do not apply to game reminders or GroupMe messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment