From 8cba19672df7e1f37ebe252e46abe93489a93d59 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 3 May 2024 09:55:47 -0700 Subject: [PATCH] Fix show line numbers --- .../kotlin/dev/romainguy/kotlin/explorer/dex/DexTextArea.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/dex/DexTextArea.kt b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/dex/DexTextArea.kt index 41dbcb6b..677526f3 100644 --- a/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/dex/DexTextArea.kt +++ b/src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/dex/DexTextArea.kt @@ -22,8 +22,7 @@ import dev.romainguy.kotlin.explorer.ExplorerState private val DexJumpRegex = Regex("^.{9}[0-9a-fA-F]{4}: .+(?
[0-9a-fA-F]{4}) // (?[+-])[0-9a-fA-F]{4}$") private val DexAddressedRegex = Regex("^.{9}(?
[0-9a-fA-F]{4}): .+$") -private val DexLineNumberRegex = Regex("^(? +\\d+: )([0-9a-f]{4}: )") +private val DexLineNumberRegex = Regex("^(? +\\d+: )([0-9a-f]{4}: )", RegexOption.MULTILINE) class DexTextArea(explorerState: ExplorerState) : CodeTextArea(explorerState, DexJumpRegex, DexAddressedRegex, DexLineNumberRegex) -