Skip to content

Commit

Permalink
Fixed rt.cpan.org bug #77399, No space allowed in section names
Browse files Browse the repository at this point in the history
Now allow the section names to contain all characters except "@"
  • Loading branch information
g0hl1n committed Aug 23, 2013
1 parent e70d62a commit 1cd8d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Nagios/Plugin/Getopt.pm
Expand Up @@ -338,7 +338,7 @@ sub _process_extra_opts
my $file = ''; my $file = '';


# Parse section@file # Parse section@file
if ($extopts =~ m/^(\w*)@(.*?)\s*$/) { if ($extopts =~ m/^([^@]*)@(.*?)\s*$/) {
$section = $1; $section = $1;
$file = $2; $file = $2;
} }
Expand Down

0 comments on commit 1cd8d1c

Please sign in to comment.