We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21b7199 commit 5668a7bCopy full SHA for 5668a7b
pacmc-common/src/commonMain/kotlin/net/axay/pacmc/common/data/ModFile.kt
@@ -16,7 +16,7 @@ class ModFile(
16
val fileName = path.name.removeSuffix(".pacmc.$extension")
17
18
val idPart = fileName.takeLastWhile { it != '_' }
19
- val repositoryPart = fileName.removeSuffix("_${idPart}")
+ val repositoryPart = fileName.removeSuffix("_${idPart}").takeLastWhile { it != '_' }
20
21
return ModId(
22
Repository.values().find { it.shortForm == repositoryPart } ?: return null,
0 commit comments