Normalize model picker search tokens
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
64a6b8c451
commit
0b3a318d19
1 file changed
+4
-1
@@ -53,7 +53,10 @@ export function buildModelPickerSearchText(model: ModelPickerSearchableModel): s
|
||||
}
|
||||
|
||||
export function normalizeModelPickerSearchQuery(query: string): string {
|
||||
return normalizeSearchQuery(query);
|
||||
return normalizeSearchQuery(query)
|
||||
.split(/\s+/u)
|
||||
.filter((token) => token.length > 0)
|
||||
.join(" ");
|
||||
}
|
||||
|
||||
export function scoreModelPickerSearch(
|
||||
|
||||
Reference in new issue
Block a user