1
0
mirror of https://github.com/uetchy/namae.git synced 2025-08-20 18:08:11 +09:00

fix: sanitize input

This commit is contained in:
2019-08-03 17:34:02 +09:00
parent 9964b4a6da
commit f4b6140aa6
2 changed files with 4 additions and 1 deletions

View File

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