From 825d8fd3bc868d8d9a80a354cd3fae95adceb7ac Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Mon, 7 Sep 2020 14:31:53 +0200 Subject: Add escaping the at sign in modules and packages --- plugins/base/src/main/kotlin/parsers/Parser.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/parsers/Parser.kt b/plugins/base/src/main/kotlin/parsers/Parser.kt index 706f093b..894fa82f 100644 --- a/plugins/base/src/main/kotlin/parsers/Parser.kt +++ b/plugins/base/src/main/kotlin/parsers/Parser.kt @@ -43,7 +43,9 @@ abstract class Parser { private fun jkdocToListOfPairs(javadoc: String): List> = "description $javadoc" .split("\n@") - .map { - it.substringBefore(' ') to it.substringAfter(' ') + .map { content -> + val contentWithEscapedAts = content.replace("\\@", "@") + val (tag, body) = contentWithEscapedAts.split(" ", limit = 2) + tag to body } } -- cgit