From c282315f0b533c3790494767d1da23aaa9d360b9 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 6 Jul 2019 10:41:42 +0800 Subject: Fix regex to support empty email addresses i.e. 'name <>' Fixes #833 --- git/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index a3b1fbfb..3ba58857 100644 --- a/git/util.py +++ b/git/util.py @@ -534,8 +534,8 @@ class Actor(object): can be committers and authors or anything with a name and an email as mentioned in the git log entries.""" # PRECOMPILED REGEX - name_only_regex = re.compile(r'<(.+)>') - name_email_regex = re.compile(r'(.*) <(.+?)>') + name_only_regex = re.compile(r'<(.*)>') + name_email_regex = re.compile(r'(.*) <(.*?)>') # ENVIRONMENT VARIABLES # read when creating new commits -- cgit v1.2.1