diff --git a/scripts/checkopts.pl b/scripts/checkopts.pl index 2c6441502277e048a39e21bbf2591bebf884b7c8..ec823433991636ee9d6a7d8d31385441a0011526 100755 --- a/scripts/checkopts.pl +++ b/scripts/checkopts.pl @@ -9,7 +9,7 @@ my $options; open(my $c_fh, '<', 'src/options.c') or die("Can't read options.c: $!"); while (my $line = <$c_fh>) { - if ($line =~ /\{"(?[\w-]+)",.*,\s*(?:'(?.)'|(?\d+))\}/o) { + if ($line =~ /\{"(?[\w-]+)"\s*,.*,\s*(?:'(?.)'|(?\d+))\}/o) { push(@{$options->{$+{long}}}, ['source', $+{short}]); } }