From: Michiel Brandenburg Date: Wed, 11 Jan 2023 12:05:32 +0000 (+0100) Subject: Updated regex after carefull reading of policy X-Git-Tag: v9.0.2~6^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=a4e3102d3ff05cd8ab42f1145fa7c37798df26f6;p=puppet-modules%2Fpuppetlabs-apt.git Updated regex after carefull reading of policy --- diff --git a/manifests/mark.pp b/manifests/mark.pp index 8aeca12..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-z0-9]{2}[a-z0-9.+\-]*$/ { + if $title !~ /^[a-z0-9][a-z0-9.+\-]+$/ { fail("Invalid package name: ${title}") }