case-insensitive protocol replacement

This commit is contained in:
Jeremy Kauffman 2017-10-13 09:32:49 -04:00
parent 7d056d3944
commit 11033dd5b2
2 changed files with 2 additions and 2 deletions

View file

@ -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({

View file

@ -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]
);
};