]> git.localhorst.tv Git - alttp.git/commitdiff
fix beer league separator
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 6 Jan 2026 02:00:34 +0000 (03:00 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 6 Jan 2026 02:00:34 +0000 (03:00 +0100)
app/Console/Commands/SyncBeerLeague.php

index 992e4b874c2ff0485d271f317fd4ad43bc6c2605..aab1fbebb5ea3355455748ac16e24c6c35169755 100644 (file)
@@ -96,8 +96,8 @@ class SyncBeerLeague extends Command {
                $episode->estimate = 120 * 60;
                $episode->save();
 
-               $players_a = preg_split('/,\s+/', $row[2]);
-               $players_b = preg_split('/,\s+/', $row[3]);
+               $players_a = preg_split('/,\s*/', $row[2]);
+               $players_b = preg_split('/,\s*/', $row[3]);
                for ($i = 0; $i < count($players_a); ++$i) {
                        $this->syncPlayer($episode, $players_a[$i]);
                        $this->syncPlayer($episode, $players_b[$i]);