From 8cea77854f2813f58d3a761aa1e1aaabf462be36 Mon Sep 17 00:00:00 2001 From: Michiel Brandenburg Date: Wed, 21 Dec 2022 22:44:08 +0100 Subject: [PATCH] Updated regex in mark.pp Now using debian policy manual as reference --- manifests/mark.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}") } -- 2.45.2