Skip to content

Commit 5fa7471

Browse files
committed
Fix regex bug when commit messages contain '[' characters
1 parent aa1fdf2 commit 5fa7471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitCommander/Repository_Branches.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void stdCallback(string line)
205205
}
206206
else
207207
{
208-
match = Regex.Match(line, @"(\S*).*\[(.*)\]");
208+
match = Regex.Match(line, @"(\S*).*?\[(\S*)?\]");
209209
if (match.Success)
210210
{
211211
isTracking = true;

0 commit comments

Comments
 (0)