case-insensitive protocol replacement
This commit is contained in:
parent
7d056d3944
commit
11033dd5b2
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ export function doSearch(rawQuery) {
|
|||
const state = getState();
|
||||
const page = selectCurrentPage(state);
|
||||
|
||||
const query = rawQuery.replace(/^lbry:\/\//, "");
|
||||
const query = rawQuery.replace(/^lbry:\/\//i, "");
|
||||
|
||||
if (!query) {
|
||||
return dispatch({
|
||||
|
|
|
@ -27,7 +27,7 @@ export const makeSelectSearchUris = query => {
|
|||
//replace statement below is kind of ugly, and repeated in doSearch action
|
||||
return createSelector(
|
||||
selectSearchUrisByQuery,
|
||||
byQuery => byQuery[query ? query.replace(/^lbry:\/\//, "") : query]
|
||||
byQuery => byQuery[query ? query.replace(/^lbry:\/\//i, "") : query]
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue