Skip to content

Commit

Permalink
path droplast
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 21, 2024
1 parent b971ff6 commit 04f5710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torisetsu/src/jsMain/kotlin/core/ComposeResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")]
}
}

0 comments on commit 04f5710

Please sign in to comment.