Verified Commit 63376d32 authored by Camil Staps's avatar Camil Staps 🚀

Fix pluralisation bug for number of results of search suggestions

parent 75c4013c
Pipeline #19378 failed with stages
in 3 minutes and 54 seconds
......@@ -695,7 +695,7 @@ function getResults(str, libs, include_builtins, include_core, include_apps, pag
sugstrmeta = sugstrmeta.length > 0 ? (' (' + sugstrmeta.join('; ') + ')') : '';
table.innerHTML += '<tr><td><a class="hidden" href="#' + query + '"><code>' +
highlightQuery(sugstr) + '</code>' + sugstrmeta + '</a></td><td>(' +
suggestions[i][1] + ' results)</td></tr>';
suggestions[i][1] + ' result' + (suggestions[i][1]==1 ? '' : 's') + ')</td></tr>';
}
suggs.appendChild(table);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment