commit: a1b4b01141a6990c03007b69cb62e3c9ca93f245
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Feb 21 18:57:21 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 18:57:21 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=a1b4b011
Allow 0-9 in list names
---
ag | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ag b/ag
index c8371db..20fce8f 100755
--- a/ag
+++ b/ag
@@ -53,10 +53,10 @@ op = OptionParser.new do |opts|
end
opts.on('--list NAME', 'Name of the mailing list to work with') do |name|
- if name =~ /^[a-zA-Z-]+$/
+ if name =~ /^[0-9a-zA-Z-]+$/
$options.name = name
else
- abort 'List name can only consist of letters and hyphens.'
+ abort 'List name can only consist of letters, numbers and hyphens.'
end
end