#1193 - quote name for special character.
This commit is contained in:
parent
9ef4d3090d
commit
fd077ef8c9
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ class App.ObjectOrganizationAutocompletion extends App.Controller
|
|||
@createToken name, objectId
|
||||
else
|
||||
if object.email
|
||||
|
||||
# quote name for special character
|
||||
if name.match(/\@|,|;|\^|\+|#|§|\$|%|&|\/|\(|\)|=|\?|!|\*|\[|\]/)
|
||||
name = "\"#{name}\""
|
||||
name += " <#{object.email}>"
|
||||
|
||||
@objectSelect.val(name)
|
||||
|
|
Loading…
Reference in a new issue