Skip to content

Commit

Permalink
[api] _product: and _patchinfo: do not have a collon in their suffix …
Browse files Browse the repository at this point in the history
…either
  • Loading branch information
adrianschroeter committed Jan 9, 2012
1 parent 1356e33 commit 4c77d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2306,8 +2306,8 @@ def valid_package_name? name
return true if name == "_pattern"
return true if name == "_project"
return true if name == "_product"
return true if name =~ /^_product:\w[-_+\w\.:]*$/
return true if name =~ /^_patchinfo:\w[-_+\w\.:]*$/ # obsolete, just for backward compatibility
return true if name =~ /^_product:\w[-_+\w\.]*$/
return true if name =~ /^_patchinfo:\w[-_+\w\.]*$/ # obsolete, just for backward compatibility
name =~ /^\w[-_+\w\.]*$/
end

Expand Down

0 comments on commit 4c77d1f

Please sign in to comment.