Skip to content

Commit 698168b

Browse files
committed
Remove whitespace from mod name
1 parent 30a3882 commit 698168b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Analysis/Problem/Forge/ModFatalProblem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function getPatterns(): array
3939
{
4040
return [
4141
'/\s*U[LCHIJAD]*E\s+(\w+)\{([^\}]+)\} \[([^\]]+)\] \(([^\)]+)\)/',
42-
'/Loading errors encountered: \[\n([^\(]+) \(([^\)]+)\) has failed to load correctly/'
42+
'/Loading errors encountered: \[\s*([^\(]+) \(([^\)]+)\) has failed to load correctly/'
4343
];
4444
}
4545

@@ -93,4 +93,4 @@ public function getModId(): ?string
9393
{
9494
return $this->modId;
9595
}
96-
}
96+
}

test/data/Vanilla/Forge/forge-multiple-fatal-problems.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@
10141014
"analysis": {
10151015
"problems": [
10161016
{
1017-
"message": "The mod '\tForgeSkyboxes' has a fatal error.",
1017+
"message": "The mod 'ForgeSkyboxes' has a fatal error.",
10181018
"counter": 1,
10191019
"entry": {
10201020
"level": 3,
@@ -1165,10 +1165,10 @@
11651165
},
11661166
"solutions": [
11671167
{
1168-
"message": "Remove the mod '\tForgeSkyboxes'."
1168+
"message": "Remove the mod 'ForgeSkyboxes'."
11691169
},
11701170
{
1171-
"message": "Install a different version of the mod '\tForgeSkyboxes'."
1171+
"message": "Install a different version of the mod 'ForgeSkyboxes'."
11721172
}
11731173
]
11741174
}

0 commit comments

Comments
 (0)