MCPcopy Index your code
hub / github.com/coder/coder / prepareQuery

Function prepareQuery

site/src/utils/filters.ts:4–6  ·  view source on GitHub ↗
(query?: string)

Source from the content-addressed store, hash-verified

2export function prepareQuery(query: undefined): undefined;
3export function prepareQuery(query: string | undefined): string | undefined;
4export function prepareQuery(query?: string): string | undefined {
5 return query?.trim().replace(/ {2,}/g, " ");
6}

Callers 8

UserAutocompleteFunction · 0.90
MultiUserSelectFunction · 0.90
MultiMemberSelectFunction · 0.90
UserOrGroupAutocompleteFunction · 0.90
groupMembersFunction · 0.90
paginatedUsersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected