summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-04-17 23:54:23 +0000
committerRobert Speicher <robert@gitlab.com>2017-04-17 23:54:23 +0000
commit6ab69f480551d06f68d540c07a075d5429555f21 (patch)
tree08a53af97249bc8de65ea5333227ee6b42ec8cf0
parent6285af3408b38072f201e6f6607e0d97a24aa95d (diff)
parent938a07f1f773a0c2702db25d855cbf6e0386411d (diff)
downloadgitlab-ce-6ab69f480551d06f68d540c07a075d5429555f21.tar.gz
Merge branch 'dm-fix-snippet-search' into 'master'
Show case insensitive matches in snippet search results See merge request !10745
-rw-r--r--app/helpers/snippets_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb
index 8c02b4061ca..979264c9421 100644
--- a/app/helpers/snippets_helper.rb
+++ b/app/helpers/snippets_helper.rb
@@ -42,7 +42,7 @@ module SnippetsHelper
0,
lined_content.size,
surrounding_lines
- ) if line.include?(query)
+ ) if line.downcase.include?(query.downcase)
end
used_lines.uniq.sort