diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-04-03 13:57:33 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@users.noreply.github.com> | 2020-04-15 14:33:24 +0200 |
commit | fee86d79a3aa7357c68c2f8f519d187f43447e8c (patch) | |
tree | 7ba7ef24bf7733e7778f0a5344756ed39c364a3a /core/src/main/kotlin | |
parent | 64e600b126ae8edcfbb3c2716febb01d221520b5 (diff) | |
download | dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.gz dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.tar.bz2 dokka-fee86d79a3aa7357c68c2f8f519d187f43447e8c.zip |
Refactor package list to be a preprocessor
Diffstat (limited to 'core/src/main/kotlin')
-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 f961c982..3d9012ec 100644 --- a/core/src/main/kotlin/links/DRI.kt +++ b/core/src/main/kotlin/links/DRI.kt @@ -69,7 +69,7 @@ val DRI.parent: DRI genericTarget != null -> copy(genericTarget = null) target != null -> copy(target = null) callable != null -> copy(callable = null) - classNames != null -> copy(classNames = classNames.substringBeforeLast('.').takeIf { it.isNotBlank() }) + classNames != null -> copy(classNames = classNames.substringBeforeLast(".", "").takeIf { it.isNotBlank() }) else -> DRI.topLevel } |