mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-18 23:59:24 +01:00
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()
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user