This commit is contained in:
tom5079
2019-12-09 10:15:53 +09:00
parent 1bf2e1dacc
commit 3f827d1bad

View File

@@ -79,7 +79,7 @@ fun urlFromURL(url: String, base: String? = null) : String {
fun fullPathFromHash(hash: String?) : String? {
return when {
hash?.length ?: 0 < 3 -> hash
(hash?.length ?: 0) < 3 -> hash
else -> hash!!.replace(Regex("^.*(..)(.)$"), "$2/$1/$hash")
}
}