Skip to content

Commit

Permalink
Fix show line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy committed May 3, 2024
1 parent 35aae2a commit 8cba196
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import dev.romainguy.kotlin.explorer.ExplorerState
private val DexJumpRegex =
Regex("^.{9}[0-9a-fA-F]{4}: .+(?<address>[0-9a-fA-F]{4}) // (?<direction>[+-])[0-9a-fA-F]{4}$")
private val DexAddressedRegex = Regex("^.{9}(?<address>[0-9a-fA-F]{4}): .+$")
private val DexLineNumberRegex = Regex("^(?<lineNumber> +\\d+: )([0-9a-f]{4}: )")
private val DexLineNumberRegex = Regex("^(?<lineNumber> +\\d+: )([0-9a-f]{4}: )", RegexOption.MULTILINE)

class DexTextArea(explorerState: ExplorerState) :
CodeTextArea(explorerState, DexJumpRegex, DexAddressedRegex, DexLineNumberRegex)

0 comments on commit 8cba196

Please sign in to comment.