From a1bc6d61af238d4a50c8a0fdde8e0850026a1064 Mon Sep 17 00:00:00 2001 From: Nick Hammond Date: Wed, 6 Mar 2024 09:08:17 -0700 Subject: [PATCH] Switch the regex ordering for hyphen and underscore for service name to remove warning --- lib/kamal/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kamal/configuration.rb b/lib/kamal/configuration.rb index 04c870a8..c171631b 100644 --- a/lib/kamal/configuration.rb +++ b/lib/kamal/configuration.rb @@ -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