Permalink
Browse files

Fixed rt.cpan.org bug #77399, No space allowed in section names

Now allow the section names to contain all characters except "@"
  • Loading branch information...
g0hl1n committed Aug 23, 2013
1 parent e70d62a commit 1cd8d1c52cbd47121f344c4074aec84653f412ce
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Nagios/Plugin/Getopt.pm
@@ -338,7 +338,7 @@ sub _process_extra_opts
my $file = '';
# Parse section@file
if ($extopts =~ m/^(\w*)@(.*?)\s*$/) {
if ($extopts =~ m/^([^@]*)@(.*?)\s*$/) {
$section = $1;
$file = $2;
}

0 comments on commit 1cd8d1c

Please sign in to comment.