Do not redeclare variable "versions".
This commit is contained in:
parent
0b3a8d93a3
commit
6b4a1b80be
|
@ -1925,7 +1925,7 @@ function downloadCountColor(downloads) {
|
|||
// Given a list of versions (as strings), return the latest version.
|
||||
function latestVersion(versions) {
|
||||
var version = '';
|
||||
var versions = versions.filter(function(version) {
|
||||
versions = versions.filter(function(version) {
|
||||
return (/^v?[0-9]/).test(version);
|
||||
});
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue
Block a user