diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-10-25 09:14:32 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-10-25 09:14:32 +0000 |
commit | e81d74b9253e4a9f48bad0071bf37075bb6a20c5 (patch) | |
tree | 3ab99d7c724af4d30f2c9f335e8655fc26f91602 /app/finders/branches_finder.rb | |
parent | 700ead2e047e7c82882f1ba862251c1fbfd48f85 (diff) | |
parent | 1cf35c3d1d274a24bf7b6283bf5d43ca0ffe8a10 (diff) | |
download | gitlab-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/finders/branches_finder.rb')
-rw-r--r-- | app/finders/branches_finder.rb | 2 |
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 |