Merge pull request #4045 from dwijnand/Deprecate-Scope.transformTaskName

Deprecate Scope.transformTaskName
This commit is contained in:
Dale Wijnand 2018-03-28 16:09:39 +01:00 committed by GitHub
commit af3eec7c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ object Scope {
def showProject012Style = (ref: Reference) => Reference.display(ref) + "/"
@deprecated("No longer used", "1.1.3")
def transformTaskName(s: String) = {
val parts = s.split("-+")
(parts.take(1) ++ parts.drop(1).map(_.capitalize)).mkString