aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/defaultConfiguration.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/defaultConfiguration.kt')
-rw-r--r--core/src/main/kotlin/defaultConfiguration.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/defaultConfiguration.kt b/core/src/main/kotlin/defaultConfiguration.kt
index f37c1add..8bd2d976 100644
--- a/core/src/main/kotlin/defaultConfiguration.kt
+++ b/core/src/main/kotlin/defaultConfiguration.kt
@@ -49,7 +49,7 @@ data class DokkaModuleDescriptionImpl(
data class SourceLinkDefinitionImpl(
override val localDirectory: String,
- override val remoteUrl: String,
+ override val remoteUrl: URL,
override val remoteLineSuffix: String?
) : DokkaConfiguration.SourceLinkDefinition {
companion object {
@@ -57,7 +57,7 @@ data class SourceLinkDefinitionImpl(
val (path, urlAndLine) = srcLink.split('=')
return SourceLinkDefinitionImpl(
File(path).canonicalPath,
- urlAndLine.substringBefore("#"),
+ URL(urlAndLine.substringBefore("#")),
urlAndLine.substringAfter("#", "").let { if (it.isEmpty()) null else "#$it" })
}
}