diff options
-rw-r--r-- | core/src/main/kotlin/links/DRI.kt | 2 |
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 { |