diff --git a/docker/lib/dependabot/docker/file_parser.rb b/docker/lib/dependabot/docker/file_parser.rb index 70590c8c9b..5c3e45b38c 100644 --- a/docker/lib/dependabot/docker/file_parser.rb +++ b/docker/lib/dependabot/docker/file_parser.rb @@ -32,7 +32,7 @@ class FileParser < Dependabot::FileParsers::Base %r{^#{FROM}\s+(#{PLATFORM}\s+)?(#{REGISTRY}/)? #{IMAGE}#{TAG}?#{DIGEST}?#{NAME}?}x.freeze - AWS_ECR_URL = /dkr\.ecr\.(?[^.]+).amazonaws\.com/.freeze + AWS_ECR_URL = /dkr\.ecr\.(?[^.]+)\.amazonaws\.com/.freeze def parse dependency_set = DependencySet.new diff --git a/docker/lib/dependabot/docker/utils/credentials_finder.rb b/docker/lib/dependabot/docker/utils/credentials_finder.rb index 28bf4772ea..43ff7718e0 100644 --- a/docker/lib/dependabot/docker/utils/credentials_finder.rb +++ b/docker/lib/dependabot/docker/utils/credentials_finder.rb @@ -9,7 +9,7 @@ module Dependabot module Docker module Utils class CredentialsFinder - AWS_ECR_URL = /dkr\.ecr\.(?[^.]+).amazonaws\.com/.freeze + AWS_ECR_URL = /dkr\.ecr\.(?[^.]+)\.amazonaws\.com/.freeze def initialize(credentials) @credentials = credentials