From a4e3102d3ff05cd8ab42f1145fa7c37798df26f6 Mon Sep 17 00:00:00 2001 From: Michiel Brandenburg Date: Wed, 11 Jan 2023 13:05:32 +0100 Subject: [PATCH] Updated regex after carefull reading of policy --- manifests/mark.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}") } -- 2.32.3