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 5242cbde99
commit 056e2d7dd5

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)
}
}