fix: Implement {url:userinfo} placeholder corrently

This commit is contained in:
Artem Chepurnoy 2024-01-07 22:36:38 +02:00
parent 6d56cbf536
commit 46d5fa2776
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,7 @@ class UrlPlaceholder(
}
key.equals("url:scm", ignoreCase = true) ||
key.equals("base:scm", ignoreCase = true)-> {
key.equals("base:scm", ignoreCase = true) -> {
uuu.protocol.name
.let(::io)
}
@ -57,7 +57,9 @@ class UrlPlaceholder(
key.equals("url:userinfo", ignoreCase = true) ||
key.equals("base:userinfo", ignoreCase = true) -> {
"todo"
val user = uuu.user.orEmpty()
val password = uuu.password.orEmpty()
"$user:$password"
.let(::io)
}