Fix regexp to parse commit message

This commit is contained in:
Alberto Fanjul 2018-10-14 18:18:01 +02:00
parent 04309f63b6
commit 7e17015566

View file

@ -236,7 +236,7 @@ public class Gitg.DiffView : Gtk.Grid
try
{
s_message_regexp = new Regex(".*[\\R\\s]*(?P<message>(?:.|\\R)*?)\\s*$");
s_message_regexp = new Regex(".*(\\R|\\s)*(?P<message>(?:.|\\R)*?)\\s*$");
} catch (Error e) { stderr.printf(@"Failed to compile regex: $(e.message)\n"); }
}