From: Don Armstrong Date: Fri, 15 Jul 2016 21:38:09 +0000 (-0700) Subject: actually strip out spaces from the option name X-Git-Url: https://git.donarmstrong.com/?p=debian-ctte.git;a=commitdiff_plain;h=b31e3cfcf2a6018895d655ac8f38df0f409180fe;hp=e146b8192d605a90f2e00b3c8def0ca92590729b actually strip out spaces from the option name --- diff --git a/scripts/pocket-devotee b/scripts/pocket-devotee index 1cecb82..232f316 100755 --- a/scripts/pocket-devotee +++ b/scripts/pocket-devotee @@ -108,7 +108,7 @@ sub main { } my @options; for my $option (@{$options{option}}) { - my ($key,$name,$majority) = $option =~ /^\s*([^:]+)\s*:\s*(.+?)\s*(?::(\d+))?$/; + my ($key,$name,$majority) = $option =~ /^\s*([^:]+?)\s*:\s*(.+?)\s*(?::(\d+))?$/; $majority //= 1; push @options,{key => $key, name => $name,