aboutsummaryrefslogtreecommitdiff
path: root/stage1/cbt.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-06 20:07:57 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-06 20:07:57 -0500
commit64ccd14614182c517995a88b888f0d7b7212f668 (patch)
tree07aa160fd60aa50c5d77a9d48eb8840c925d4fd6 /stage1/cbt.scala
parent78b22ae86df111b89db1ecb20c40a0384b148698 (diff)
downloadcbt-64ccd14614182c517995a88b888f0d7b7212f668.tar.gz
cbt-64ccd14614182c517995a88b888f0d7b7212f668.tar.bz2
cbt-64ccd14614182c517995a88b888f0d7b7212f668.zip
support publishing to basic-auth protected maven repositories
Diffstat (limited to 'stage1/cbt.scala')
-rw-r--r--stage1/cbt.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage1/cbt.scala b/stage1/cbt.scala
index d28789c..0305dd2 100644
--- a/stage1/cbt.scala
+++ b/stage1/cbt.scala
@@ -65,7 +65,7 @@ object `package`{
}
implicit class URLExtensionMethods( url: URL ){
def ++( s: String ): URL = new URL( url.toString ++ s )
- def string = url.toString
+ def show = "/[^/@]+@".r.replaceFirstIn( url.toString, "/" ) // remove credentials when showing url for security reasons
}
implicit class SeqExtensions[T](seq: Seq[T]){
def maxOption(implicit ev: Ordering[T]): Option[T] = try{ Some(seq.max) } catch {