Changeset - 13da89053853
[Not reviewed]
default
0 1 0
Mads Kiilerich - 10 years ago 2016-01-05 16:30:12
madski@unity3d.com
vcs: emails are never unicode so make author_email return strings
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/utils/__init__.py
Show inline comments
 
@@ -171,9 +171,9 @@ def author_email(author):
 
                              r"""0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]"""
 
                              r"""*[a-z0-9])?""", re.IGNORECASE)
 
        m = re.findall(email_re, author)
 
        return m[0] if m else ''
 
        return safe_str(m[0]) if m else ''
 

	
 
    return author[l + 1:r].strip()
 
    return safe_str(author[l + 1:r].strip())
 

	
 

	
 
def author_name(author):
0 comments (0 inline, 0 general)