summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-10-25 09:14:32 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-10-25 09:14:32 +0000
commite81d74b9253e4a9f48bad0071bf37075bb6a20c5 (patch)
tree3ab99d7c724af4d30f2c9f335e8655fc26f91602 /app
parent700ead2e047e7c82882f1ba862251c1fbfd48f85 (diff)
parent1cf35c3d1d274a24bf7b6283bf5d43ca0ffe8a10 (diff)
downloadgitlab-ce-e81d74b9253e4a9f48bad0071bf37075bb6a20c5.tar.gz
Merge branch '35199-case-insensitive-branches-search' into 'master'
Add case insensitive branches search Closes #35199 See merge request gitlab-org/gitlab-ce!14995
Diffstat (limited to 'app')
-rw-r--r--app/finders/branches_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/branches_finder.rb b/app/finders/branches_finder.rb
index 533076585c0..852eac3647d 100644
--- a/app/finders/branches_finder.rb
+++ b/app/finders/branches_finder.rb
@@ -23,7 +23,7 @@ class BranchesFinder
def filter_by_name(branches)
if search
- branches.select { |branch| branch.name.include?(search) }
+ branches.select { |branch| branch.name.upcase.include?(search.upcase) }
else
branches
end