Add hyphen to the allowed character list for service name
This commit is contained in:
@@ -284,7 +284,7 @@ class Kamal::Configuration
|
||||
end
|
||||
|
||||
def ensure_valid_service_name
|
||||
raise ArgumentError, "Service name can only include alphanumeric characters and hyphens" 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
|
||||
|
||||
Reference in New Issue
Block a user