summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-01-06 19:15:29 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-06 19:15:29 +0000
commit19e2b7faf7439992f9d91f4b053d25d956f3e83a (patch)
tree4e30cf5778759a4d99f34d681dacfa0928120e17 /lib
parentbc82bff16f0c095533a78b1ca894f8ac3b92b2dc (diff)
downloadgitlab-ce-19e2b7faf7439992f9d91f4b053d25d956f3e83a.tar.gz
Add latest changes from gitlab-org/security/gitlab@13-7-stable-ee
Diffstat (limited to 'lib')
-rw-r--r--lib/api/concerns/packages/nuget_endpoints.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/concerns/packages/nuget_endpoints.rb b/lib/api/concerns/packages/nuget_endpoints.rb
index 5177c4d23c0..1a03a6a6dad 100644
--- a/lib/api/concerns/packages/nuget_endpoints.rb
+++ b/lib/api/concerns/packages/nuget_endpoints.rb
@@ -15,7 +15,7 @@ module API
extend ActiveSupport::Concern
POSITIVE_INTEGER_REGEX = %r{\A[1-9]\d*\z}.freeze
- NON_NEGATIVE_INTEGER_REGEX = %r{\A0|[1-9]\d*\z}.freeze
+ NON_NEGATIVE_INTEGER_REGEX = %r{\A(0|[1-9]\d*)\z}.freeze
included do
helpers do