Skip to content

Commit

Permalink
Add "paraclimbing" to event name
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoSWD committed Jun 22, 2024
1 parent bd83667 commit 0b82f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Event/IFSCEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function normalizedName(): string
/** @throws InvalidLeagueName */
private function leagueName(): string
{
if (preg_match('~(?<name>(?:World|Continental)\s+(?:Cup|Championships?))~', $this->eventName, $match)) {
if (preg_match('~(?<name>(Paraclimbing\s+)?(?:World|Continental)\s+(?:Cup|Championships?))~', $this->eventName, $match)) {
return $match['name'];
}

Expand Down

0 comments on commit 0b82f65

Please sign in to comment.