From a99c8dd7ccfbbbacb299aecf27832942e5aa3c98 Mon Sep 17 00:00:00 2001 From: Fabio Zuber Date: Fri, 30 Sep 2016 17:59:55 +0200 Subject: [PATCH] fix(branch overview): allow email as username The branch overview screen crashes if there is a commit with an email address as username in the commit history. This change fixes that. --- src/zabapgit_page_branch_overview.prog.abap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zabapgit_page_branch_overview.prog.abap b/src/zabapgit_page_branch_overview.prog.abap index bd6bfd4a9..c288c0b12 100644 --- a/src/zabapgit_page_branch_overview.prog.abap +++ b/src/zabapgit_page_branch_overview.prog.abap @@ -193,7 +193,7 @@ CLASS lcl_branch_overview IMPLEMENTATION. SPLIT ls_raw-body AT gc_newline INTO ls_commit-message lv_trash. * unix time stamps are in same time zone, so ignore the zone, - FIND REGEX '^([\w\s]+) <(.*)> (\d{10}) .\d{4}$' IN ls_raw-author + FIND REGEX '^([\w\s\.@]+) <(.*)> (\d{10}) .\d{4}$' IN ls_raw-author SUBMATCHES ls_commit-author ls_commit-email @@ -590,4 +590,4 @@ CLASS lcl_gui_page_branch_overview IMPLEMENTATION. ENDMETHOD. -ENDCLASS. \ No newline at end of file +ENDCLASS.