Updated regex after carefull reading of policy
authorMichiel Brandenburg <apex@xepa.nl>
Wed, 11 Jan 2023 12:05:32 +0000 (13:05 +0100)
committerMichiel Brandenburg <apex@xepa.nl>
Wed, 11 Jan 2023 12:05:32 +0000 (13:05 +0100)
manifests/mark.pp

index 8aeca121bd71560d1b4edbe95c465255f3540bd6..b2146b0a54a6cd906e691992e43c1bdc24e312b9 100644 (file)
@@ -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}")
   }