diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-03-08 17:33:10 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-03 02:11:51 +0900 |
commit | a46c91f43225931f94a7d3c7f47beef82152f0ce (patch) | |
tree | 66c7a297aff2fb20748948083a2f02c383533d26 /app | |
parent | 56f50cbb3a63ae914f50eda3756b49d5cf516207 (diff) | |
download | gitlab-ce-a46c91f43225931f94a7d3c7f47beef82152f0ce.tar.gz |
Fix inappropriate regex
Diffstat (limited to 'app')
-rw-r--r-- | app/finders/pipelines_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb index 46588cf3c16..aa0210fa7f2 100644 --- a/app/finders/pipelines_finder.rb +++ b/app/finders/pipelines_finder.rb @@ -101,7 +101,7 @@ class PipelinesFinder def order_and_sort(items) if params[:order_by].present? && params[:sort].present? && items.column_names.include?(params[:order_by]) && - params[:sort] =~ /\A(ASC|DESC)\Z/i + params[:sort] =~ /\A(ASC|DESC)\z/i items.reorder(params[:order_by] => params[:sort]) else items.reorder(id: :desc) |