browser: obsolete trimming in version number formatting
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 27 Apr 2017 15:43:26 +0000 (17:43 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:21:27 +0000 (19:21 +0200)
CanIUse data no longer contains version numbers starting with "."
or ending with "x".

browser.plp

index b06d8e94bd3f1c633072c3d6e5353a5d95817bd6..83a9678ef6f2b3b319f66e8500e2b65c4c11542e 100644 (file)
@@ -459,10 +459,6 @@ sub paddedver {
 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 } @_);
-       for (@span) {
-               s/^\./0./;
-               s/x$/.*/;
-       }
        return $span[0] if @_ <= 1;
        splice @span, 1, -1;
        return join('‒', @span);
        return $span[0] if @_ <= 1;
        splice @span, 1, -1;
        return join('‒', @span);