diff options
author | micael.bergeron <micaelbergeron@gmail.com> | 2017-11-15 10:56:17 -0500 |
---|---|---|
committer | micael.bergeron <micaelbergeron@gmail.com> | 2017-11-15 10:56:17 -0500 |
commit | 160324d08b3756f6c5fbf79b23f09d66e5a19d9e (patch) | |
tree | 9661a88105af8deec6e4839a065b08ca3438dfb2 | |
parent | 4374a38f0e8fbd856458a60f47083fb4d084d695 (diff) | |
download | gitlab-ce-160324d08b3756f6c5fbf79b23f09d66e5a19d9e.tar.gz |
try to fix the failing spec on external refs
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index e28bf28fab3..b5411b2bf75 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -26,7 +26,7 @@ class Commit DIFF_HARD_LIMIT_LINES = 50000 MIN_SHA_LENGTH = 7 - COMMIT_SHA_PATTERN = /\b(?<![~#!@:])\h{#{MIN_SHA_LENGTH},40}/.freeze + COMMIT_SHA_PATTERN = /(?<!\s[~#!@:])\h{#{MIN_SHA_LENGTH},40}/.freeze def banzai_render_context(field) context = { pipeline: :single_line, project: self.project } |