From 1cd8d1c52cbd47121f344c4074aec84653f412ce Mon Sep 17 00:00:00 2001 From: Richard Leitner Date: Fri, 23 Aug 2013 08:43:17 +0200 Subject: Fixed rt.cpan.org bug #77399, No space allowed in section names Now allow the section names to contain all characters except "@" diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index f910c4b..22ff642 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/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; } -- cgit v0.10-9-g596f