replace spaces globally on publish suggest on search

This commit is contained in:
jessop 2019-12-18 10:49:04 -05:00 committed by Sean Yesmunt
parent 9b120ea62a
commit d3401da684

View file

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