aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/DokkaBootstrapImpl.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/DokkaBootstrapImpl.kt b/core/src/main/kotlin/DokkaBootstrapImpl.kt
index 59139263..5f3fc7b3 100644
--- a/core/src/main/kotlin/DokkaBootstrapImpl.kt
+++ b/core/src/main/kotlin/DokkaBootstrapImpl.kt
@@ -12,7 +12,7 @@ fun parseSourceLinkDefinition(srcLink: String): SourceLinkDefinition {
fun parseSourceRoot(sourceRoot: String): SourceRoot {
val components = sourceRoot.split("::", limit = 2)
- return SourceRoot(components.first(), components.getOrNull(1)?.split(',').orEmpty())
+ return SourceRoot(components.last(), if (components.size == 1) listOf() else components[0].split(','))
}
class DokkaBootstrapImpl : DokkaBootstrap {