git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed4d4d
)
browser: sort non-numeric version numbers last
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 4 Feb 2015 07:20:02 +0000
(08:20 +0100)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/browser.plp
b/browser.plp
index beff4a9a99a251344883eb8d660de8f713541def..9fd9e9069490b8142a50179236c13de36257893c 100644
(file)
--- a/
browser.plp
+++ b/
browser.plp
@@
-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 {