Skip to content
Snippets Groups Projects
Verified Commit 94e4dcb6 authored by Griefed's avatar Griefed :joystick:
Browse files

fix: Prevent lambdas from preventing int cast

parent 9eb57a3f
No related branches found
No related tags found
No related merge requests found
Pipeline #8884 passed
......@@ -157,7 +157,7 @@ class MigrationManager(
val methodMap = HashMap<String, Method>(100)
val methodVersions = TreeSet<String>()
for (method in methods) {
val methodVersion = toSemantic(method.name)
val methodVersion = toSemantic(method.name.replace("\\\$[0-9]*lambda\\\$[0-9]*".toRegex(),""))
methodMap[methodVersion] = method
methodVersions.add(methodVersion)
}
......@@ -238,7 +238,7 @@ class MigrationManager(
* @author Griefed
*/
private fun semantics(version: String): IntArray {
return version.replace("[0-9]*\$lambda\$[0-9]*".toRegex(),"").split(Regex("\\.")).map { it.toInt() }.toIntArray()
return version.replace("\\\$[0-9]*lambda\\\$[0-9]*".toRegex(),"").split(Regex("\\.")).map { it.toInt() }.toIntArray()
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment