mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-15 13:00:12 +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") }
|
.onEach { println("all files=$it") }
|
||||||
.filter { it.name.matches(Regex("""${project.name}-([0-9]|\.)*-all\.jar""")) }
|
.filter { it.name.matches(Regex("""${project.name}-([0-9]|\.)*-all\.jar""")) }
|
||||||
.onEach { println("matched file: ${it.name}") }
|
.onEach { println("matched file: ${it.name}") }
|
||||||
.associateBy { it.nameWithoutExtension.substringAfterLast('-') }
|
.associateBy { it.nameWithoutExtension.substringAfterLast('-').replace("-all", "") }
|
||||||
.onEach { println("versions: $it") }
|
.onEach { println("versions: $it") }
|
||||||
.maxBy {
|
.maxBy {
|
||||||
it.key.split('.').foldRightIndexed(0) { index: Int, s: String, acc: Int ->
|
it.key.split('.').foldRightIndexed(0) { index: Int, s: String, acc: Int ->
|
||||||
|
Loading…
Reference in New Issue
Block a user