[gitg] Fix regexp to parse commit message



commit 7e17015566e2483fe5228730631e6936bfc302fb
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Sun Oct 14 18:18:01 2018 +0200

    Fix regexp to parse commit message

 libgitg/gitg-diff-view.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index 53b761d8..f4076f5b 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -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"); }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]