Skip to content

Commit 0f2ea93

Browse files
author
LisoUseInAIKyrios
committed
fix: Correctly handle patches jar path if it contains exclamation marks
1 parent 1c0fd55 commit 0f2ea93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/app/revanced/patches/shared/misc/integrations/BaseIntegrationsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ abstract class BaseIntegrationsPatch(
7575
val urlString = classUrl.toString()
7676

7777
if (urlString.startsWith("jar:file:")) {
78-
val end = urlString.indexOf('!')
78+
val end = urlString.lastIndexOf('!')
7979
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
8080
}
8181
}

0 commit comments

Comments
 (0)