1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Accept versions with a "v" in them.

Fix #108.
This commit is contained in:
Cedric Beust 2016-01-29 01:43:38 +04:00
parent 6003f2199c
commit 965d467ac3
2 changed files with 6 additions and 1 deletions

View file

@ -21,7 +21,7 @@ class MavenId private constructor(val groupId: String, val artifactId: String, v
}
private fun isVersion(s: String): Boolean {
return Character.isDigit(s[0]) || isRangedVersion(s)
return s[0] == 'v' || Character.isDigit(s[0]) || isRangedVersion(s)
}
fun isRangedVersion(s: String): Boolean {