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.
This commit is contained in:
Fabio Zuber 2016-09-30 17:59:55 +02:00 committed by GitHub
parent 7f3a665756
commit a99c8dd7cc

View File

@ -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.
ENDCLASS.