From d3401da684dc2db847c1367fea731fbbb0ab7633 Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 18 Dec 2019 10:49:04 -0500 Subject: [PATCH] replace spaces globally on publish suggest on search --- ui/page/search/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx index 658e9bd90..b5728a2b2 100644 --- a/ui/page/search/view.jsx +++ b/ui/page/search/view.jsx @@ -27,7 +27,7 @@ export default function SearchPage(props: Props) { let modifiedUrlQuery = urlQuery ? urlQuery .trim() - .replace(/\s+/, '-') + .replace(/\s+/g, '-') .replace(INVALID_URI_CHARS, '') : ''; const isModifiedUriValid = isURIValid(modifiedUrlQuery);