diff options
Diffstat (limited to 'app/finders/ci/pipelines_finder.rb')
-rw-r--r-- | app/finders/ci/pipelines_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/ci/pipelines_finder.rb b/app/finders/ci/pipelines_finder.rb index e52fc510628..6ba2ae91d6c 100644 --- a/app/finders/ci/pipelines_finder.rb +++ b/app/finders/ci/pipelines_finder.rb @@ -164,7 +164,7 @@ module Ci :id end - sort = if params[:sort] =~ /\A(ASC|DESC)\z/i + sort = if /\A(ASC|DESC)\z/i.match?(params[:sort]) params[:sort] else :desc |