Merge pull request #708 from nickhammond/valid_service_name

Remove warning for valid service name
This commit is contained in:
Donal McBreen
2024-03-06 16:22:04 +00:00
committed by GitHub

View File

@@ -288,7 +288,7 @@ class Kamal::Configuration
end
def ensure_valid_service_name
raise ArgumentError, "Service name can only include alphanumeric characters, hyphens, and underscores" unless raw_config[:service] =~ /^[a-z0-9-_]+$/
raise ArgumentError, "Service name can only include alphanumeric characters, hyphens, and underscores" unless raw_config[:service] =~ /^[a-z0-9_-]+$/
true
end