summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2012-08-22 21:24:40 +0200
committerAlex Legler <a3li@gentoo.org>2012-08-22 21:24:40 +0200
commita564efeb3ec5f748ef0d2ba06e7ba21a50bd9c56 (patch)
treee70b457c1cfbdea0a97eb740f0f1349673470c6c
parentBug #184: Fix archive display for releases at the last day of the month (diff)
downloadglsamaker-a564efeb3ec5f748ef0d2ba06e7ba21a50bd9c56.tar.gz
glsamaker-a564efeb3ec5f748ef0d2ba06e7ba21a50bd9c56.tar.bz2
glsamaker-a564efeb3ec5f748ef0d2ba06e7ba21a50bd9c56.zip
Portage lib: Make valid atom regex match better
-rw-r--r--lib/glsamaker/portage.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/glsamaker/portage.rb b/lib/glsamaker/portage.rb
index a039c9e..b238d38 100644
--- a/lib/glsamaker/portage.rb
+++ b/lib/glsamaker/portage.rb
@@ -62,7 +62,7 @@ module Glsamaker
# Validates the atom +atom+
def valid_atom?(atom)
- atom =~ /[a-zA-Z0-9_-]\/[a-zA-Z0-9_-]/
+ atom =~ /^[+a-zA-Z0-9_-]+\/[+a-zA-Z0-9_-]+$/
end
# Gets a description