From 419dd6431ed87fcffec9805897285c3357124a17 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 29 Oct 2020 23:56:01 -0400 Subject: [PATCH] fix exact claim not showing up when copying url --- ui/page/search/view.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx index 8effda082..ea45a2fcd 100644 --- a/ui/page/search/view.jsx +++ b/ui/page/search/view.jsx @@ -2,7 +2,7 @@ import { SIMPLE_SITE, SHOW_ADS } from 'config'; import * as ICONS from 'constants/icons'; import React, { useEffect } from 'react'; -import { Lbry, regexInvalidURI, parseURI, isNameValid } from 'lbry-redux'; +import { Lbry, parseURI, isNameValid } from 'lbry-redux'; import ClaimList from 'component/claimList'; import Page from 'component/page'; import SearchOptions from 'component/searchOptions'; @@ -47,11 +47,10 @@ export default function SearchPage(props: Props) { additionalOptions['nsfw'] = false; } - const INVALID_URI_CHARS = new RegExp(regexInvalidURI, 'gu'); const modifiedUrlQuery = urlQuery .trim() .replace(/\s+/g, '') - .replace(INVALID_URI_CHARS, ''); + .replace(/:/g, '#'); const uriFromQuery = `lbry://${modifiedUrlQuery}`; let streamName;