From ed408fd0f23660e91f449399a8336c79c2dd6f7b Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 13 Sep 2022 02:09:08 +0800 Subject: [PATCH] Fix space overflow bug in ReflectionTool --- .../yukihookapi/hook/core/reflex/tools/ReflectionTool.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/reflex/tools/ReflectionTool.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/reflex/tools/ReflectionTool.kt index 1ae08c2d..2cd2b66c 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/reflex/tools/ReflectionTool.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/reflex/tools/ReflectionTool.kt @@ -373,8 +373,8 @@ internal object ReflectionTool { instanceSet, name = "Field", "name:[${name.takeIf { it.isNotBlank() } ?: "unspecified"}]", nameConditions?.let { "nameConditions:$it" } ?: "", - "type:[${type ?: "unspecified"}] ", - "modifiers:${modifiers ?: "[]"} ", + "type:[${type ?: "unspecified"}]", + "modifiers:${modifiers ?: "[]"}", orderIndex?.let { it.takeIf { it.second }?.let { e -> "orderIndex:[${e.first}]" } ?: "orderIndex:[last]" } ?: "", matchIndex?.let { it.takeIf { it.second }?.let { e -> "matchIndex:[${e.first}]" } ?: "matchIndex:[last]" } ?: "" )