Skip to content

Commit 6d0270d

Browse files
author
Andrija Pantovic
committed
fix regex and increase version
1 parent 3475935 commit 6d0270d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "io.wusa"
10-
version = "2.3.7"
10+
version = "2.3.8"
1111

1212
dependencies {
1313
implementation(kotlin("stdlib-jdk8"))

src/main/kotlin/io/wusa/GitService.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class GitService {
103103

104104
private fun getCurrentBranch(project: Project): String {
105105
val head = GitCommandRunner.execute(project.projectDir, arrayOf("log", "-n", "1", "--pretty=%d", "HEAD"))
106-
return """\([grafted, ]{0,9}HEAD -> (.*?)[,|)]|\([grafted, ]{0,9}HEAD,.*origin/(.*?)[,|)]""".toRegex().find(head)!!.groupValues[1]
106+
return """\([grafted, ]{0,9}HEAD -> (.*?)[,|)]|\([grafted, ]{0,9}HEAD,.*origin\/(.*?)[,|)]""".toRegex().find(head)!!.groupValues[1]
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)