diff --git a/web/src/App.js b/web/src/App.js index 43d5ad3..d5e4950 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -34,7 +34,8 @@ export default function App() { const queryGiven = query && query.length > 0 useEffect(() => { - setQuery(inputValue) + const modifiedValue = inputValue.replace(/[\s@\+!#$%^&*()\[\]]/g, '') + setQuery(modifiedValue) }, [inputValue, setQuery]) useEffect(() => { diff --git a/web/src/components/Suggestion.js b/web/src/components/Suggestion.js index db31e4e..cd0eaed 100644 --- a/web/src/components/Suggestion.js +++ b/web/src/components/Suggestion.js @@ -16,6 +16,8 @@ export default function Suggestion({ query, onSubmit }) { `${capital}Lab`, `${capital}Kit`, `Open${capital}`, + `${capital}box`, + `${lower}hub`, ] .sort(() => Math.random() - 0.5) .slice(0, 3)