Skip to content

Commit

Permalink
(MCOP-588) Support @ as a valid character in service_name (choria-leg…
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerd authored and MikaelSmith committed Mar 1, 2017
1 parent 02723af commit 5b071d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/service_name.rb
Expand Up @@ -2,7 +2,7 @@ module MCollective
module Validator
class Service_nameValidator
def self.validate(service_name)
raise("%s is not a valid service name" % service_name) unless !!(service_name =~ /\A^[a-zA-Z\.\-_\d]+$\z/)
raise("%s is not a valid service name" % service_name) unless !!(service_name =~ /\A^[a-zA-Z\.\-_\d@]+$\z/)
end
end
end
Expand Down

0 comments on commit 5b071d0

Please sign in to comment.