From: Michiel Brandenburg Date: Wed, 21 Dec 2022 21:44:08 +0000 (+0100) Subject: Updated regex in mark.pp X-Git-Tag: v9.0.2~6^2~3 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8cea77854f2813f58d3a761aa1e1aaabf462be36;p=puppet-modules%2Fpuppetlabs-apt.git Updated regex in mark.pp Now using debian policy manual as reference --- diff --git a/manifests/mark.pp b/manifests/mark.pp index 492886d..8aeca12 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]{2}[a-z0-9.+\-]*$/ { fail("Invalid package name: ${title}") }