From 66757b43bb48d52e4fb92d38e9a893ab40d1d63e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 23 Feb 2017 17:31:32 +0100 Subject: Allow to specify implied platforms in command line; fix parsing of platforms specified in command line --- core/src/main/kotlin/DokkaBootstrapImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') 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 { -- cgit