Skip to content

Commit 5a2e5c0

Browse files
committed
(GH-1057) Regex fix to allow dotted resources
Prior to this commit, one of our recent module updates introduced a regex validation step for the resource names in our ppa.pp manifest which would raise an issue if a valid resource name contained a dot (.). This commit aims to slightly adjust the regex validation so that it allows for dotted resource names. This PR should fix issue #1057.
1 parent dad7d73 commit 5a2e5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/ppa.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
# Validate the resource name
43-
if $name !~ /^ppa:([a-zA-Z0-9\-_]+)\/([a-zA-z0-9\-_]+)$/ {
43+
if $name !~ /^ppa:([a-zA-Z0-9\-_]+)\/([a-zA-z0-9\-_\.]+)$/ {
4444
fail("Invalid PPA name: ${name}")
4545
}
4646

0 commit comments

Comments
 (0)