Skip to content

Commit 71f3c96

Browse files
committed
fix highlighting of lines with longer hashes
1 parent 7a99aa7 commit 71f3c96

File tree

1 file changed

+1
-1
lines changed
  • src/commonMain/kotlin

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/ui.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fun App(viewModel: ViewModel) {
7676
}
7777
}
7878

79-
private val LineRegexp = """^(pick|reword|edit|squash|fixup|exec|drop)\s+([a-z0-9]{7})\s+(.*)$""".toRegex()
79+
private val LineRegexp = """^(pick|reword|edit|squash|fixup|exec|drop)\s+([a-z0-9]{7,40})\s+(.*)$""".toRegex()
8080

8181
private val Blue = Color(59, 120, 255)
8282
private val Gray = Color(128, 128, 128)

0 commit comments

Comments
 (0)