Skip to content

Commit

Permalink
Fix regex bug when commit messages contain '[' characters
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipWitte committed Jul 12, 2023
1 parent aa1fdf2 commit 5fa7471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GitCommander/Repository_Branches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void stdCallback(string line)
}
else
{
match = Regex.Match(line, @"(\S*).*\[(.*)\]");
match = Regex.Match(line, @"(\S*).*?\[(\S*)?\]");
if (match.Success)
{
isTracking = true;
Expand Down

0 comments on commit 5fa7471

Please sign in to comment.