Minor design fixes

This commit is contained in:
Saoud Rizwan
2024-09-07 06:09:32 -04:00
parent 715db7129d
commit 04588798ef
4 changed files with 16 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ function formatResults(results: SearchResult[], cwd: string): string {
if (results.length >= MAX_RESULTS) {
output += `Showing first ${MAX_RESULTS} of ${MAX_RESULTS}+ results. Use a more specific search if necessary.\n\n`
} else {
output += `Found ${results.length.toLocaleString()} results.\n\n`
output += `Found ${results.length === 1 ? "1 result" : `${results.length.toLocaleString()} results`}.\n\n`
}
// Group results by file name