replace spaces globally on publish suggest on search
This commit is contained in:
parent
9b120ea62a
commit
d3401da684
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue