Truncate jQuery version, can be long and break display

This commit is contained in:
Gaël Métais
2015-02-06 14:32:21 +01:00
parent a7df7a5436
commit 368bf4a6d9
+5
View File
@@ -312,6 +312,11 @@ var policies = {
return null;
}
// Truncate version number (can be long sometimes, no clue why but it can...)
if (value.length > 30) {
value = value.substr(0, 28) + '...';
}
return {
value: value,
score: score,