diff options
author | Alex Legler <alex@a3li.li> | 2015-02-21 19:57:21 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-02-21 19:57:21 +0100 |
commit | a1b4b01141a6990c03007b69cb62e3c9ca93f245 (patch) | |
tree | f24cd0f700b7e342a41639cea8f68b894b7057b0 | |
parent | Do some basic mailing list name validation (diff) | |
download | backend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.tar.gz backend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.tar.bz2 backend-a1b4b01141a6990c03007b69cb62e3c9ca93f245.zip |
Allow 0-9 in list names
-rwxr-xr-x | ag | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |