fix: Correctly handle patches jar path if it contains exclamation marks

This commit is contained in:
LisoUseInAIKyrios
2024-04-29 22:26:02 +04:00
parent 1c0fd55361
commit 0f2ea93aaa

View File

@@ -75,7 +75,7 @@ abstract class BaseIntegrationsPatch(
val urlString = classUrl.toString()
if (urlString.startsWith("jar:file:")) {
val end = urlString.indexOf('!')
val end = urlString.lastIndexOf('!')
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
}
}