Skip to content

Commit 140c2c8

Browse files
committed
Detect duplicate mods with new forge logging format
1 parent e302ead commit 140c2c8

File tree

4 files changed

+552
-2
lines changed

4 files changed

+552
-2
lines changed

src/Analysis/Problem/Forge/ModDuplicateProblem.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ public function getMessage(): string
4545
*/
4646
public static function getPatterns(): array
4747
{
48-
return ['/Found a duplicate mod (.+) at \[([^,\n]+), ([^,\n]+)\]/'];
48+
return [
49+
'/Found a duplicate mod (.+) at \[([^,\n]+), ([^,\n]+)[,\]]/',
50+
'/^\s+Mod ID:(.+) from mod files: ([^,\n]+), ([^,\n]+)/m',
51+
];
4952
}
5053

5154
/**
@@ -92,4 +95,4 @@ public function getSecondModPath(): ?string
9295
{
9396
return $this->secondModPath;
9497
}
95-
}
98+
}

0 commit comments

Comments
 (0)