Skip to content

Commit

Permalink
fix: Correctly handle patches jar path if it contains exclamation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Apr 29, 2024
1 parent 5242cbd commit 056e2d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 056e2d7

Please sign in to comment.