mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 11:30:13 +08:00
Fix naming issue
This commit is contained in:
parent
0c905f8cd0
commit
5120e79fec
@ -93,7 +93,7 @@ fun Project.findLatestFile(): Map.Entry<String, File>? {
|
||||
.onEach { println("all files=$it") }
|
||||
.filter { it.name.matches(Regex("""${project.name}-([0-9]|\.)*-all\.jar""")) }
|
||||
.onEach { println("matched file: ${it.name}") }
|
||||
.associateBy { it.nameWithoutExtension.substringAfterLast('-') }
|
||||
.associateBy { it.nameWithoutExtension.substringAfterLast('-').replace("-all", "") }
|
||||
.onEach { println("versions: $it") }
|
||||
.maxBy {
|
||||
it.key.split('.').foldRightIndexed(0) { index: Int, s: String, acc: Int ->
|
||||
|
Loading…
Reference in New Issue
Block a user