diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-09-13 15:24:19 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-09-13 15:24:19 +0300 |
commit | 5720bce1136e0f45b7628c3b4b5bedb5d444c381 (patch) | |
tree | ad1dfba51dc78adec9cb61d3c3569d556796af74 /app | |
parent | 46bdcd64056e8e5ed8d397b0ad5accaa7e5e9d06 (diff) |
Also treat newlines as separator, as people would do that
Before this fix, I don't know if those emails would work
having newlines in them.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_services/pipelines_email_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/pipelines_email_service.rb b/app/models/project_services/pipelines_email_service.rb index 9d37184be2c..6a3118a11b8 100644 --- a/app/models/project_services/pipelines_email_service.rb +++ b/app/models/project_services/pipelines_email_service.rb @@ -80,6 +80,6 @@ class PipelinesEmailService < Service end def retrieve_recipients(data) - recipients.to_s.split(',').reject(&:blank?) + recipients.to_s.split(/[,(?:\r?\n) ]+/).reject(&:empty?) end end |