aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/links/DRI.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-11-05 19:04:59 +0100
committerKamil Doległo <kamilok1965@interia.pl>2019-11-05 19:04:59 +0100
commite67355a8a48fa8df9d1c6a91a5d854bb183e3759 (patch)
tree58dc32b3bf45204af265fd12e699a0b5565eb370 /core/src/main/kotlin/links/DRI.kt
parenta4053154631c08bd91fdb1dd098265e301d76a02 (diff)
downloaddokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.tar.gz
dokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.tar.bz2
dokka-e67355a8a48fa8df9d1c6a91a5d854bb183e3759.zip
Fix DRI.withClass
Diffstat (limited to 'core/src/main/kotlin/links/DRI.kt')
-rw-r--r--core/src/main/kotlin/links/DRI.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt
index fced7dde..67b8643b 100644
--- a/core/src/main/kotlin/links/DRI.kt
+++ b/core/src/main/kotlin/links/DRI.kt
@@ -67,7 +67,7 @@ data class DRI(
}
}
-fun DRI.withClass(name: String) = copy(classNames = classNames.orEmpty() + ".$name")
+fun DRI.withClass(name: String) = copy(classNames = if(classNames.isNullOrBlank()) name else "$classNames.$name")
val DRI.parent: DRI
get() = when {