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 c6fc340 commit 1071ff4Copy full SHA for 1071ff4
shared/src/main/kotlin/org/javacs/kt/classpath/WithStdlibResolver.kt
@@ -45,15 +45,15 @@ private fun wrapWithStdlib(paths: Set<Path>): Set<Path> {
45
}
46
47
private data class StdLibItem(
48
- val key : String,
49
- val major : Int,
+ val key: String,
+ val major: Int,
50
val minor: Int,
51
- val patch : Int,
+ val patch: Int,
52
val path: Path
53
) {
54
companion object {
55
// Matches names like: "kotlin-stdlib-jdk7-1.2.51.jar"
56
- val parser = Regex("""(kotlin-stdlib(-[^-]+)?)-(\d+)\.(\d+)\.(\d+)\.jar""")
+ val parser = Regex("""(kotlin-stdlib(-[^-]+)?)(?:-(\d+)\.(\d+)\.(\d+))?\.jar""")
57
58
fun from(path: Path) : StdLibItem? {
59
return parser.matchEntire(path.fileName.toString())?.let { match ->
0 commit comments