summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/container_registry/path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 2291291d1fc..89973b2e7b8 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -56,7 +56,7 @@ module ContainerRegistry
def repository_name
return unless has_project?
- @path.remove(%r(^?#{Regexp.escape(repository_project.full_path)}/?))
+ @path.remove(%r(^#{Regexp.escape(repository_project.full_path)}/?))
end
def to_s