X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fmark.pp;h=b2146b0a54a6cd906e691992e43c1bdc24e312b9;hb=refs%2Fheads%2Frelease-prep;hp=492886d2eb007dae8f06512a94d281c0cf213b44;hpb=67c24c7a203e5c6faed72768310e506de37ac84a;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/mark.pp b/manifests/mark.pp index 492886d..b2146b0 100644 --- a/manifests/mark.pp +++ b/manifests/mark.pp @@ -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}") }