diff --git a/torisetsu/src/jsMain/kotlin/core/ComposeResult.kt b/torisetsu/src/jsMain/kotlin/core/ComposeResult.kt index 9390365..5b4e044 100644 --- a/torisetsu/src/jsMain/kotlin/core/ComposeResult.kt +++ b/torisetsu/src/jsMain/kotlin/core/ComposeResult.kt @@ -90,6 +90,6 @@ class ComposeResult() : Result { ) override fun getDiagnosis(resultPathName: String): Diagnosis? { - return diagnosisMap.get(resultPathName.replace("/", "").replace(".html", "")) + return diagnosisMap[resultPathName.split("/").dropLastWhile { it.isEmpty() }.last().replace(".html", "")] } }