puppetlabs/puppet — pull request #1027 by fatpat (2012-08-13 21:46:35+00:00)
Title: Allow environment to be named with alphanumerics, dashes and underscore

$environment is limited to /^\w+$/ only

it would be very great to extend the regex to /^\w[\w\-_]*$/

We have a thousands of environments with a so called "sub enviroment" and it would be great to have dashes and underscores to be allowed in $environment