Update localized emoji, fix search

This commit is contained in:
Fedor Indutny
2026-02-10 12:46:45 -08:00
committed by GitHub
parent 3463b5bec7
commit 9fb47847d5
2 changed files with 202 additions and 202 deletions

View File

@@ -700,7 +700,7 @@ export function normalizeShortNameCompletionDisplay(shortName: string): string {
export function normalizeShortNameCompletionQuery(query: string): string {
return removeDiacritics(query)
.normalize('NFD')
.replaceAll(/[\s,_-]+/gi, ' ')
.replaceAll(/(?<!^)[\s,_-]+/gi, ' ')
.toLowerCase();
}