From 7bda0fad1719e5c4b7f68d954dcd1f3b5d80fe40 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 10 Apr 2013 20:15:28 -0400 Subject: [PATCH] Better auto-generated IDs for default projects. Fixes #554. For the global plugins project, the default ID is "global-plugins". For a normal project, the default ID is the name of the build directory. The ID of a build definition for one of the above appends -build. --- ivy/src/main/scala/sbt/StringUtilities.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/src/main/scala/sbt/StringUtilities.scala b/ivy/src/main/scala/sbt/StringUtilities.scala index 3a0075bb4..17f6e75a9 100644 --- a/ivy/src/main/scala/sbt/StringUtilities.scala +++ b/ivy/src/main/scala/sbt/StringUtilities.scala @@ -5,7 +5,7 @@ package sbt object StringUtilities { - def normalize(s: String) = s.toLowerCase.replaceAll("""\s+""", "-") + def normalize(s: String) = s.toLowerCase.replaceAll("""\W+""", "-") def nonEmpty(s: String, label: String) { require(s.trim.length > 0, label + " cannot be empty.")