fix: Correctly handle patches jar path if it contains exclamation marks
This commit is contained in:
parent
5242cbde99
commit
056e2d7dd5
|
@ -75,7 +75,7 @@ abstract class BaseIntegrationsPatch(
|
||||||
val urlString = classUrl.toString()
|
val urlString = classUrl.toString()
|
||||||
|
|
||||||
if (urlString.startsWith("jar:file:")) {
|
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)
|
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue