mirror of https://github.com/sbt/sbt.git
Better auto project ID handling. Ref #776.
* Consolidate project ID validation and normalization into Project methods * Provide an earlier and more detailed error message when the directory name can't be used for the project ID
This commit is contained in:
parent
141d608ed7
commit
c924862d1c
|
|
@ -5,6 +5,7 @@ package sbt
|
|||
|
||||
object StringUtilities
|
||||
{
|
||||
@deprecated("Different use cases require different normalization. Use Project.normalizeModuleID or normalizeProjectID instead.", "0.13.0")
|
||||
def normalize(s: String) = s.toLowerCase.replaceAll("""\W+""", "-")
|
||||
def nonEmpty(s: String, label: String)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue