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