mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
fix: Correctly handle patches jar path if it contains exclamation marks
This commit is contained in:
parent
5242cbde99
commit
056e2d7dd5
1 changed files with 1 additions and 1 deletions
|
@ -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