Merge pull request #756 from basvandijk/only-convert-integer-option-values-to-ints
GitInput: only convert integer option values to int
This commit is contained in:
commit
301e4e088e
|
@ -118,7 +118,7 @@ sub fetchInput {
|
||||||
$name);
|
$name);
|
||||||
# give preference to the options from the input value
|
# give preference to the options from the input value
|
||||||
while (my ($opt_name, $opt_value) = each %{$options}) {
|
while (my ($opt_name, $opt_value) = each %{$options}) {
|
||||||
if ($opt_value =~ /\d+/) {
|
if ($opt_value =~ /^[+-]?\d+\z/) {
|
||||||
$opt_value = int($opt_value);
|
$opt_value = int($opt_value);
|
||||||
}
|
}
|
||||||
$cfg->{$opt_name} = $opt_value;
|
$cfg->{$opt_name} = $opt_value;
|
||||||
|
|
Loading…
Reference in a new issue