Add hyphen to the allowed character list for service name

This commit is contained in:
Nick Hammond
2024-03-04 10:03:22 -07:00
parent a02af74dda
commit 3b16e047c5
2 changed files with 2 additions and 2 deletions

View File

@@ -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