diff options
Diffstat (limited to 'lib/chef/user.rb')
-rw-r--r-- | lib/chef/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/user.rb b/lib/chef/user.rb index 994cbb5773..33fc7d0456 100644 --- a/lib/chef/user.rb +++ b/lib/chef/user.rb @@ -38,7 +38,7 @@ class Chef def name(arg=nil) set_or_return(:name, arg, - :regex => /^[\-[:alnum:]_\.]+$/) + :regex => /^[a-z0-9\-_]+$/) end def admin(arg=nil) |