Sfoglia il codice sorgente

Truncate jQuery version, can be long and break display

Gaël Métais 10 anni fa
parent
commit
368bf4a6d9
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      lib/metadata/policies.js

+ 5 - 0
lib/metadata/policies.js

@@ -312,6 +312,11 @@ var policies = {
                     return null;
                     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 {
                 return {
                     value: value,
                     value: value,
                     score: score,
                     score: score,