fix(ui): correct the result counts of code searching (#2609)

This commit is contained in:
aliang 2024-07-10 11:37:20 +09:00 committed by GitHub
parent 119953aee1
commit 442247fd61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,7 +47,7 @@ export const CodeSearchResultView = (props: CodeSearchResultViewProps) => {
return sum + _matchCount
}, 0)
count += curCount
count += Math.max(curCount, 1)
}
const format = count < 1000 ? '0' : '0.0a'
return numeral(count).format(format)