Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion manifests/ppa.pp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

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

Expand Down
2 changes: 2 additions & 0 deletions spec/defines/ppa_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def ppa_exec_params(user, repo, distro = 'trusty', environment = [])
'ppa:foo/bar1.0',
'ppa:foo10/bar10',
'ppa:foo-/bar_',
'ppa:foo/bar+',
'ppa:foo+/bar',
].each do |value|
describe 'valid resource names' do
let :facts do
Expand Down