From e8d560ea8242d99f5be51f9385c5045f46ee7015 Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 17 May 2007 21:51:36 +0000 Subject: Fixing #566 -- definitions, tags, and classes can now be single characters git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2523 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/scope.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index c7b36e36c..2f4917bee 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -629,7 +629,7 @@ class Puppet::Parser::Scope Puppet.debug "got told to tag with %s" % tag.inspect next end - unless tag =~ /^\w[-\w]+$/ + unless tag =~ /^\w[-\w]*$/ fail Puppet::ParseError, "Invalid tag %s" % tag.inspect end tag = tag.to_s -- cgit