Release prep v9.1.0
[puppet-modules/puppetlabs-apt.git] / manifests / mark.pp
index 492886d2eb007dae8f06512a94d281c0cf213b44..b2146b0a54a6cd906e691992e43c1bdc24e312b9 100644 (file)
@@ -8,7 +8,7 @@
 define apt::mark (
   Enum['auto','manual','hold','unhold'] $setting,
 ) {
-  if $title !~ /^[a-zA-Z0-9\-_\.]+$/ {
+  if $title !~ /^[a-z0-9][a-z0-9.+\-]+$/ {
     fail("Invalid package name: ${title}")
   }