Skip to content

Commit b2f8532

Browse files
authored
Fix support for inline toc directives when they use a colon
1 parent 724d603 commit b2f8532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TocFileParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function listFiles(string $tocFilePath): array
131131
private function allowLoadGameType(string $gameTypes): bool
132132
{
133133
$gameTypesForFlavor = array_map(strtolower(...), $this->getGameTypesForFlavor($this->flavor));
134-
$allowedGameTypes = explode(',', strtolower(str_replace(' ', '', $gameTypes)));
134+
$allowedGameTypes = explode(',', strtolower(str_replace([' ', ':'], '', $gameTypes)));
135135
foreach ($allowedGameTypes as $gameType) {
136136
if (in_array($gameType, $gameTypesForFlavor)) {
137137
return true;

0 commit comments

Comments
 (0)