summaryrefslogtreecommitdiff
path: root/lib/gitlab/diff
diff options
context:
space:
mode:
authorMassimeddu Cireddu <massimeddu@gmail.com>2019-09-02 10:43:54 +0000
committerNick Thomas <nick@gitlab.com>2019-09-02 10:43:54 +0000
commitaef0d817927f514ad5a0a42203aff94e30f13740 (patch)
tree373c3f577ce1f43fb004e0f20f4313dc15bc1518 /lib/gitlab/diff
parentc0e679e098688080b1835526eb0bca910dcb030c (diff)
downloadgitlab-ce-aef0d817927f514ad5a0a42203aff94e30f13740.tar.gz
Fixing #65389
Wrong format on MS Teams integration push events with multi line commit messages
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/suggestion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/suggestion.rb b/lib/gitlab/diff/suggestion.rb
index 4a3ac2106e2..b669e785721 100644
--- a/lib/gitlab/diff/suggestion.rb
+++ b/lib/gitlab/diff/suggestion.rb
@@ -46,7 +46,7 @@ module Gitlab
private
def line_break_chars(line)
- match = /\r\n|\r|\n/.match(line)
+ match = Gitlab::Regex.breakline_regex.match(line)
match[0] if match
end
end