Commit 9edffc7a authored by GARNIER Laurent's avatar GARNIER Laurent
Browse files

Replace second call to email2name() by title(). title() already capitalize all...

Replace second call to email2name() by title(). title() already capitalize all first letter while capitalize() do it only on the first letter.
parent ef17ea13
Pipeline #120683 passed with stages
in 3 minutes and 48 seconds
......@@ -29,7 +29,7 @@ def email2name(email):
if '.' in value[0]:
data = value[0].split('.')
contact = data[0] + ' ' + data[1]
return email2name(contact.title())
return contact.title()
else:
return value[0].capitalize()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment