Currently only used with multiple versions for Safari, such as "7.0-7.1"
which given as minimum "7.0" represents unnecessary accuracy.
sub showversions {
# title to describe minumum version and optional maximum for multiple cells
my @span = (map { split /-/ } grep { defined } @_);
sub showversions {
# title to describe minumum version and optional maximum for multiple cells
my @span = (map { split /-/ } grep { defined } @_);
- return $span[0] if @_ <= 1;
+ return $span[0] =~ s/\.0\z//r if @_ <= 1;
splice @span, 1, -1;
return join('‒', @span);
}
splice @span, 1, -1;
return join('‒', @span);
}