From d8b4c6032185fb236c34683acf00115cd9d35eaf Mon Sep 17 00:00:00 2001 From: Vologhat Date: Sun, 7 Apr 2024 18:54:37 +0300 Subject: [PATCH] refactor: Simplify mapping classes to their names (#290) Co-authored-by: oSumAtrIX --- src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt b/src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt index a2eb142..08de7dd 100644 --- a/src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt +++ b/src/main/kotlin/app/revanced/patcher/PatchBundleLoader.kt @@ -103,7 +103,7 @@ sealed class PatchBundleLoader private constructor( patchBundles, { patchBundle -> JarFile(patchBundle).entries().toList().filter { it.name.endsWith(".class") } - .map { it.name.replace('/', '.').replace(".class", "") } + .map { it.name.substringBeforeLast('.').replace('/', '.') } }, )