]> git.localhorst.tv Git - alttp.git/commitdiff
beer league facebones exception
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 10 Jan 2026 00:06:47 +0000 (01:06 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 10 Jan 2026 00:06:47 +0000 (01:06 +0100)
app/Console/Commands/SyncBeerLeague.php

index bdc34e02de6a343ba375f2ec87413fc7e78aeca7..14ea1dc202165883e767afd4964c084acbaabc12 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('/(?<!It\'s me),\s*/', $row[2]);
+               $players_b = preg_split('/(?<!It\'s me),\s*/', $row[3]);
                for ($i = 0; $i < count($players_a); ++$i) {
                        $this->syncPlayer($episode, $players_a[$i], 'a'.$i);
                        $this->syncPlayer($episode, $players_b[$i], 'b'.$i);