Commit 22b215aa authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-user-extractor-diff' into 'master'

Make UserExtractor#initialize the same as CE

See merge request gitlab-org/gitlab-ee!10323
parents c93c8b9e a67c3137
......@@ -11,7 +11,9 @@ module Gitlab
USERNAME_REGEXP = User.reference_pattern
def initialize(text)
@text = text.is_a?(Array) ? text.join(' ') : text
# EE passes an Array to `text` in a few places, so we want to support both
# here.
@text = Array(text).join(' ')
end
def users
......
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