aboutsummaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-19 20:54:48 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 23:54:16 -0400
commitb0385cedf55c3e04171f12ce2775010a269800a5 (patch)
treeb3a31d8d90c1483018f0b4d739c7dd8d41e2930d /stage1
parentf5fe60ada0a550907a378592ee07291ee157f275 (diff)
downloadcbt-b0385cedf55c3e04171f12ce2775010a269800a5.tar.gz
cbt-b0385cedf55c3e04171f12ce2775010a269800a5.tar.bz2
cbt-b0385cedf55c3e04171f12ce2775010a269800a5.zip
performance: avoid compiling regex every time
Diffstat (limited to 'stage1')
-rw-r--r--stage1/resolver.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage1/resolver.scala b/stage1/resolver.scala
index 5090af7..0e5d221 100644
--- a/stage1/resolver.scala
+++ b/stage1/resolver.scala
@@ -416,7 +416,7 @@ case class BoundMavenDependency(
}
}
object BoundMavenDependency{
- def ValidIdentifier = "^([A-Za-z0-9_\\-.]+)$".r // according to maven's DefaultModelValidator.java
+ val ValidIdentifier = "^([A-Za-z0-9_\\-.]+)$".r // according to maven's DefaultModelValidator.java
def semanticVersionLessThan(left: Array[Either[Int,String]], right: Array[Either[Int,String]]) = {
// FIXME: this ignores ends when different size
val zipped = left zip right