mirror of
https://github.com/usebruno/bruno.git
synced 2025-03-13 14:29:04 +01:00
feature: search includes url
This commit is contained in:
parent
f8711a91d9
commit
6ab5eec089
@ -3,7 +3,10 @@ import filter from 'lodash/filter';
|
||||
import find from 'lodash/find';
|
||||
|
||||
export const doesRequestMatchSearchText = (request, searchText = '') => {
|
||||
return request?.name?.toLowerCase().includes(searchText.toLowerCase());
|
||||
const lowerSearchText = searchText.toLowerCase();
|
||||
const nameMatch = request?.name?.toLowerCase().includes(lowerSearchText);
|
||||
const urlMatch = request?.request?.url?.toLowerCase().includes(lowerSearchText);
|
||||
return nameMatch || urlMatch;
|
||||
};
|
||||
|
||||
export const doesFolderHaveItemsMatchSearchText = (item, searchText = '') => {
|
||||
|
Loading…
Reference in New Issue
Block a user