browser: sort non-numeric version numbers last
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 4 Feb 2015 07:20:02 +0000 (08:20 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 5 Feb 2015 21:46:21 +0000 (22:46 +0100)
MSIE version "TP" comes after "11", obviously!
This is the only non-numeric version number for now, see how it develops.

browser.plp

index beff4a9a99a251344883eb8d660de8f713541def..9fd9e9069490b8142a50179236c13de36257893c 100644 (file)
@@ -395,7 +395,7 @@ sub paddedver {
        # normalised version number comparable as string (cmp)
        shift =~ /(?:.*-|^)(\d*)(.*)/;
        # matched (major)(.minor) of last value in range (a-B)
-       return sprintf('%02d', $1 || 0) . $2;
+       return sprintf('%02d', $1 || 99) . $2;
 }
 
 sub showversions {