diff options
| author | Douwe Maan <douwe@selenight.nl> | 2017-04-13 11:43:46 -0500 |
|---|---|---|
| committer | Douwe Maan <douwe@selenight.nl> | 2017-04-17 13:56:02 -0500 |
| commit | 938a07f1f773a0c2702db25d855cbf6e0386411d (patch) | |
| tree | ad737c3c7104dcbbe62115907a6b8ed899c62b83 | |
| parent | 41acc87fbd457d2894fb519eb48f215d017ddec2 (diff) | |
| download | gitlab-ce-dm-fix-snippet-search.tar.gz | |
Show case insensitive matches in snippet search resultsdm-fix-snippet-search
| -rw-r--r-- | app/helpers/snippets_helper.rb | 2 |
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 |
