diff --git a/src/main/kotlin/mdnet/cache/ImageStorage.kt b/src/main/kotlin/mdnet/cache/ImageStorage.kt index a798f5d..ce96495 100644 --- a/src/main/kotlin/mdnet/cache/ImageStorage.kt +++ b/src/main/kotlin/mdnet/cache/ImageStorage.kt @@ -366,7 +366,6 @@ class ImageStorage( private val JACKSON: ObjectMapper = jacksonObjectMapper() private fun String.toCachePath() = - this.substring(0, 3).replace(".(?!$)".toRegex(), "$0 ").split(" ".toRegex()).reversed() - .plus(this).joinToString(File.separator) + this.substring(0, 3).split("").reversed().drop(1).joinToString(File.separator) + this } }