MCPcopy
hub / github.com/tkirda/jQuery-Autocomplete / getQuery

Method getQuery

src/Autocomplete.ts:379–386  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

377 }
378
379 private getQuery(value: string): string {
380 const { delimiter } = this.options;
381 if (!delimiter) {
382 return value;
383 }
384 const parts = value.split(delimiter);
385 return parts[parts.length - 1]!.trim();
386 }
387
388 private getSuggestionsLocal(query: string): AutocompleteResponse {
389 const options = this.options;

Callers 4

onBlurMethod · 0.95
onValueChangeMethod · 0.95
suggestMethod · 0.95
processResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected