git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
browser: transfer usage of unknown version to next row
[sheet.git]
/
tools
/
convert-stats-wikimedia.pl
diff --git
a/tools/convert-stats-wikimedia.pl
b/tools/convert-stats-wikimedia.pl
index 5ee59ca8671df131e2ab03f8063179673b97a9ce..b5b833d0390aa83c81bdc97e7597ba7815e7849c 100644
(file)
--- a/
tools/convert-stats-wikimedia.pl
+++ b/
tools/convert-stats-wikimedia.pl
@@
-38,10
+38,7
@@
given ($browser) {
($_) = $1 =~ m{^/(\d+)};
continue;
}
($_) = $1 =~ m{^/(\d+)};
continue;
}
- s/\d\d\.\d\K.*// or do {
- # major part only, except for ≥v9.6
- $_ ge '9.6' ? ($_ = '9.6') : (s/\..*//);
- };
+ s/^\d*\.\d\K.*//; # one significant digit
}
continue;
}
}
continue;
}
@@
-57,7
+54,7
@@
given ($browser) {
[ '525' => '2' ],
[ '528' => '3' ],
[ '531' => '3.2' ],
[ '525' => '2' ],
[ '528' => '3' ],
[ '531' => '3.2' ],
- [ '531.022' => '4
.1'
],
+ [ '531.022' => '4
'
],
[ '533' => '4.2' ],
[ '534' => '4x' ],
) : (
[ '533' => '4.2' ],
[ '534' => '4x' ],
) : (