Home > @rushstack/lookup-by-path > LookupByPath > findLongestPrefixMatch
LookupByPath.findLongestPrefixMatch() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
The readonly component of LookupByPath, to simplify unit testing.
Signature:
findLongestPrefixMatch(query: string, delimiter?: string): IPrefixMatch<TItem> | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
query | string | |
delimiter | string | (Optional) |
Returns:
IPrefixMatch<TItem> | undefined