aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-21 19:57:21 +0100
committerAlex Legler <alex@a3li.li>2015-02-21 19:57:21 +0100
commita1b4b01141a6990c03007b69cb62e3c9ca93f245 (patch)
treef24cd0f700b7e342a41639cea8f68b894b7057b0
parentDo some basic mailing list name validation (diff)
downloadbackend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.tar.gz
backend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.tar.bz2
backend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.zip
Allow 0-9 in list names
-rwxr-xr-xag4
1 files 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