fixed Version unapply method

This commit is contained in:
berleon 2012-12-18 17:41:49 +01:00
parent 2f725bf16f
commit 4bc9e3f7df
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ object Plugin extends sbt.Plugin {
val VersionPattern = """(\d+)\.(\d+)\.(\d+)(?:-(.*))?""".r
object Version {
def unapplySeq(str: String): Option[(Int, Int, Int, Seq[String])] = str match {
def unapply(str: String): Option[(Int, Int, Int, Seq[String])] = str match {
case VersionPattern(major, minor, fix, appendix) => Some((major.toInt, minor.toInt, fix.toInt, Option(appendix).toSeq))
case _ => None
}