Improved shown realname of email addresses.

This commit is contained in:
Martin Edenhofer 2017-01-10 00:15:50 +01:00
parent d11a954450
commit 13dd008803

View file

@ -212,7 +212,14 @@ class App extends Spine.Controller
if result if result
result = result + ', ' result = result + ', '
if item.name if item.name
result = result + App.Utils.htmlEscape(item.name) + ' ' item.name = item.name
.replace(',', '')
.replace(';', '')
.replace('"', '')
.replace('\'', '')
if item.name.match(/\@|,|;|\^|\+|#|§|\$|%|&|\/|\(|\)|=|\?|\*/)
item.name = "\"#{item.name}\""
result = "#{result}#{App.Utils.htmlEscape(item.name)} "
if item.address if item.address
result = result + " <span class=\"text-muted\">&lt;#{App.Utils.htmlEscape(item.address)}&gt</span>" result = result + " <span class=\"text-muted\">&lt;#{App.Utils.htmlEscape(item.address)}&gt</span>"
result result