diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-16 11:31:07 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-11-16 11:31:07 +0300 |
commit | f4df4f9e3504f0f2fd7acf86087aa0e22177e981 (patch) | |
tree | d9da74d9b1a1bc1398e06ed4092c525b195f2935 /lib/gitlab/regex.rb | |
parent | a248bb769f40937e93e8050f3ababb9066115940 (diff) |
Update container repository path reference
We should allow to use double underscore in the path, and it seems that
our container repository path regexp was outdated.
See https://github.com/docker/distribution/blob/master/reference/regexp.go
Diffstat (limited to 'lib/gitlab/regex.rb')
-rw-r--r-- | lib/gitlab/regex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index bd677ec4bf3..2c7b8af83f2 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -25,7 +25,7 @@ module Gitlab # See https://github.com/docker/distribution/blob/master/reference/regexp.go. # def container_repository_name_regex - @container_repository_regex ||= %r{\A[a-z0-9]+(?:[-._/][a-z0-9]+)*\Z} + @container_repository_regex ||= %r{\A[a-z0-9]+((?:[._/]|__|[-])[a-z0-9]+)*\Z} end ## |